| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112 |
- <?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:p5dkp.entities="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/dita_kosztorys_projektowy/p5dkp.entities.xsd"
- exclude-result-prefixes="xs"
- version="2.0">
- <xsl:output indent="yes"/>
- <xsl:strip-space elements="*"/>
- <xsl:param name="basedir"/>
-
- <xsl:param name="p5dkp:xsd" required="yes"/>
- <xsl:param name="debug"/>
-
- <xsl:param name="p5dkp.entities:element.name" select="'wymagania'"/>
- <xsl:param name="p5dkp.entities:element.keyscope" select="concat($p5dkp.entities:element.name,'.')"/>
- <xsl:param name="p5dkp.entities:element.entities__x3A___no" select="'wymagania_no'"/>
- <!-- <xsl:param name="p5dkp.entities:element.targetNamespace" select="'http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/dita_kosztorys_projektowy/p5dkp.entities.wymagania.xsd'"/>
- <xsl:param name="p5dkp.entities:element.xsd" select="'file:/Users/a.binder/Documents/xmlschema_procesy5/src-xmlschema/public_html/WPS_Functions/dita_kosztorys_projektowy/p5dkp.entities.wymagania.xsd'"/>-->
- <xsl:param name="p5dkp:basedir" required="yes"/>
- <xsl:include href="p5dkp.dita.xsl"/>
- <xsl:include href="../xsd_asserts/p5xsda.sort_elements.xsl"/>
-
-
-
-
-
- <xsl:template match="p5dkp:map.keys.xml" mode="p5dkp.entities:element.xml">
- <xsl:variable name="map.keys" select="root()"/>
- <xsl:element name="p5dkp:map.{$p5dkp.entities:element.name}.xml">
- <xsl:attribute name="xsi:schemaLocation" select="concat('http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/dita_kosztorys_projektowy/p5dkp.xsd',' ',$p5dkp:xsd)"/>
- <!--<p5dkp:map.zadanie.xml xsi:schemaLocation="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/dita_kosztorys_projektowy/p5dkp.xsd {$p5dkp:xsd}">-->
-
-
- <xsl:variable name="p5xsda:xs.sequence">
- <xsl:apply-templates mode="p5xsda:xs.sequence" select="doc($p5dkp:xsd)//group[@name=$p5dkp.entities:element.name]/sequence" xpath-default-namespace="http://www.w3.org/2001/XMLSchema">
- <xsl:with-param name="p5xsda:schemaLocation.basedir" select="$p5dkp:basedir"/>
- </xsl:apply-templates>
- </xsl:variable>
- <xsl:copy-of select="$p5xsda:xs.sequence" copy-namespaces="no"/>
-
-
-
- <xsl:for-each select=".//topicref[contains(@keyscope,$p5dkp.entities:element.keyscope) ]">
-
- <xsl:if test="number($debug) > 2">
- <xsl:message>#41 found topicref
- <xsl:copy copy-namespaces="no">
- <xsl:copy-of select="@*" copy-namespaces="no"/>
- val:<xsl:value-of select="topicmeta//keyword/text()"/>
- </xsl:copy>
- </xsl:message>
- </xsl:if>
-
- <!--<xsl:variable name="tools" select="$map.keys//topicref[keydef[map.keys.eval[keys[ @map.keys.eval=current()/keydef[@keys='map.tools']/@keyref]]]]"/>-->
- <!--<xsl:variable name="tools" select="$map.keys//topicref[keydef[map.keys.eval[keys[ @map.keys.eval='tools.master_server.product_no']]]]"/>-->
- <!--<xsl:variable name="map.taskid" select="keydef[@keys='map.taskid']//keyword"/>-->
- <xsl:element name="p5dkp:{$p5dkp.entities:element.name}">
- <!--<p5dkp:zadanie>--> <!-- xmlns="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/dita_kosztorys_projektowy/p5dkp.xsd" -->
- <xsl:copy-of select="@*"/>
- <xsl:copy-of select="keydef/map.keys.eval" copy-namespaces="no"/>
- <xsl:if test="number($debug) > 10"><DEBUG><xsl:copy-of select="."/></DEBUG></xsl:if>
- <xsl:variable name="p5dkp:dita">
- <xsl:apply-templates mode="p5dkp:dita">
- <xsl:with-param name="keyscope" select="@keyscope"/>
- <xsl:with-param name="type" select="$p5dkp.entities:element.entities__x3A___no"/>
- </xsl:apply-templates>
- </xsl:variable>
-
- <xsl:call-template name="p5xsda:sort_elements">
- <xsl:with-param name="p5xsda:elements.local" select="$p5dkp:dita"/>
- <xsl:with-param name="p5xsda:xs.sequence" select="$p5xsda:xs.sequence" xpath-default-namespace="http://www.w3.org/2001/XMLSchema"/>
-
-
- </xsl:call-template>
- <xsl:call-template name="p5xsda:missing_elements">
- <xsl:with-param name="p5xsda:elements.local" select="$p5dkp:dita"/>
- <xsl:with-param name="p5xsda:xs.sequence" select="$p5xsda:xs.sequence" xpath-default-namespace="http://www.w3.org/2001/XMLSchema"/>
- </xsl:call-template>
- <!--<xsl:apply-templates mode="p5dkp:dita">
- <xsl:with-param name="keyscope" select="@keyscope"/>
- <xsl:with-param name="type" select="$p5dkp.entities:element.entities__x3A___no"/>
- </xsl:apply-templates>-->
- <!--</p5dkp:zadanie>-->
- </xsl:element>
- </xsl:for-each>
- <!--</p5dkp:map.zadanie.xml>-->
- </xsl:element>
- </xsl:template>
-
- <xsl:template mode="p5dkp.entities:element.xml" match="topicref">
- <xsl:message terminate="yes">#124 error - not allowed to be topicref structurized at the moment</xsl:message>
- </xsl:template>
-
- <xsl:template mode="p5dkp.entities:element.xml" match="keydef">
- <xsl:element name="{@keys}">
- <xsl:value-of select="topicmeta//keyword/text()"/>
- </xsl:element>
- </xsl:template>
-
-
- <xsl:template mode="p5dkp.entities:element.xml" match="text()|comment()"/>
-
-
-
- </xsl:stylesheet>
|