| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677 |
- <?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"
- exclude-result-prefixes="xs"
- version="2.0">
- <xsl:output indent="yes"/>
- <xsl:strip-space elements="*"/>
- <xsl:param name="basedir"/>
-
-
- <xsl:template mode="p5dkp:map.budzet_rola.xml.local p5dkp:map.budzet_rola.xml.local.idref" match="text()">
- <xsl:copy-of select="."/>
- </xsl:template>
-
- <xsl:template mode="p5dkp:map.budzet_rola.xml.local p5dkp:map.budzet_rola.xml.local.idref" match="missing_elements" xpath-default-namespace="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/xsd_asserts/p5xsda.xsd">
- <xsl:copy-of select="."/>
- </xsl:template>
-
- <xsl:template mode="p5dkp:map.budzet_rola.xml.local p5dkp:map.budzet_rola.xml.local.idref" match="*">
- <xsl:copy>
- <xsl:choose>
- <xsl:when test="* or text() or @p5dkp:id or @href">
- <xsl:apply-templates mode="#current" select="@*"/>
- <xsl:apply-templates mode="#current"/>
- </xsl:when>
- <xsl:when test="@keyref">
- <xsl:variable name="keyscope.field" select="tokenize(@keyref,'\.')[ position() = last()]"/>
- <xsl:variable name="keyscope" select=" substring-before(@keyref,concat('.',$keyscope.field))"/>
- <xsl:message>#167 evaluating $@keyref=<xsl:value-of select="@keyref"/> to $keyscope.field = <xsl:value-of select="$keyscope.field"/>;
- - evaluated <xsl:value-of select="$p5dkp.map.keys//topicref[@keyscope=$keyscope]/keydef[@keys = $keyscope.field]//keyword/text()"/></xsl:message>
- <xsl:apply-templates mode="#current" select="@*"/>
- <xsl:value-of select="$p5dkp.map.keys//topicref[@keyscope=$keyscope]/keydef[@keys = $keyscope.field]//keyword/text()"/>
- </xsl:when>
- <xsl:when test="../@href">
- <xsl:variable name="keyscope.field" select="tokenize(@keyref,'\.')[ position() = last()]"/>
- <xsl:variable name="keyscope" select=" substring-before(@keyref,concat('.',$keyscope.field))"/>
- <xsl:message>#167-B copying @href=<xsl:value-of select="../@href"/> $keyscope.field = <xsl:value-of select="$keyscope.field"/>; </xsl:message>
- <xsl:copy-of select="../@href"/>
- <!--<xsl:apply-templates mode="#current" select="../@*"/>-->
- </xsl:when>
- <xsl:otherwise>
- <xsl:message terminate="yes">#173 unantended <xsl:value-of select="name()"/> ; <xsl:copy-of select="@*"/> value=<xsl:value-of select="text()"/> ; parent=<xsl:value-of select="../name()"/>/<xsl:copy-of select="../@*"></xsl:copy-of></xsl:message>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:copy>
- </xsl:template>
-
- <xsl:template mode="p5dkp:map.budzet_rola.xml.local.idref p5dkp:map.budzet_rola.xml.local" match="@*">
- <xsl:copy-of select="."/>
- </xsl:template>
-
- <xsl:template mode="p5dkp:map.budzet_rola.xml.local.idref" match="@p5dkp:id">
- <xsl:attribute name="p5dkp:idref" select="."/>
- </xsl:template>
-
- <xsl:template mode="p5dkp:map.budzet_rola.xml.local.idref p5dkp:map.budzet_rola.xml.local" match="@keyref">
- <xsl:attribute name="keyref" select="."/>
- <xsl:attribute name="p5dkp:idref" select="."/>
- </xsl:template>
-
- <xsl:template mode="p5dkp:map.budzet_rola.xml.local p5dkp:map.budzet_rola.xml.local.idref" match="map.keys.eval">
- <!--<xsl:choose>
- <xsl:when test="$debug">
- <xsl:copy-of select="."/>
- </xsl:when>
- </xsl:choose>-->
- </xsl:template>
-
-
- </xsl:stylesheet>
|