| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- <?xml version="1.0" encoding="UTF-8"?>
- <xsl:stylesheet xmlns:vc="http://www.w3.org/2007/XMLSchema-versioning"
- xmlns:xs="http://www.w3.org/2001/XMLSchema"
- xmlns:p5bws="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/WPS_Functions.xsd"
- xmlns:system_cache__appinfo="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/appinfo.xsd"
- xmlns:p5dkp="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/dita_kosztorys_projektowy/p5dkp.xsd"
- xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- xmlns:p5suis="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/system_ui_info_speech/system_ui_info_speech.xsd"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xmlns:p5xsda="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/xsd_asserts/p5xsda.xsd"
- xmlns:ditaarch="http://dita.oasis-open.org/architecture/2005/"
- xmlns:system_cache__dita="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/dita.xsd"
- exclude-result-prefixes="xs ditaarch"
- version="2.0">
-
- <!-- do sledzenia audience po mapie -->
-
- <xsl:template name="p5dkp:audience">
- <xsl:param name="audience"/>
- <xsl:param name="audience.attr"/>
- <audience>
- <xsl:for-each select="$audience/audience/key">
- <xsl:copy-of select="."/>
- </xsl:for-each>
- <xsl:for-each select="p5dkp:audience.attrs($audience.attr)"><key><xsl:copy-of select="." copy-namespaces="no"/></key></xsl:for-each>
- </audience>
- </xsl:template>
-
- <xsl:function name="p5dkp:audience.attrs">
- <xsl:param name="audience.attrs"/>
- <xsl:for-each select="$audience.attrs">
- <xsl:choose>
- <xsl:when test="name()='audience' or name()='product' or name()='otherprop'">
- <xsl:copy-of select="." copy-namespaces="no"/>
- </xsl:when>
- </xsl:choose>
- </xsl:for-each>
- </xsl:function>
-
- <xsl:function name="p5dkp:audience.init">
- <audience>
- <key/>
- </audience>
- </xsl:function>
-
-
- </xsl:stylesheet>
|