| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417 |
- <?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"
- xmlns:p5dkp.entities-generated="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/dita_kosztorys_projektowy/p5dkp.entities-generated.xsd"
- xmlns:p5dkp.entities="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/dita_kosztorys_projektowy/p5dkp.entities.xsd"
- xmlns:p5dkp-er="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/dita_kosztorys_projektowy/p5dkp.entities-relations.xsd"
- xmlns:p5frc="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/flat_relation_cache/p5frc.xsd"
- exclude-result-prefixes="xs ditaarch"
- version="2.0">
-
- <xsl:import href="p5dkp.param.xsl"/>
-
- <xsl:output indent="yes" method="xml" exclude-result-prefixes="ditaarch"/>
- <!--<xsl:output indent="yes" method="xml" standalone="no" doctype-public="-//OASIS//DTD DITA Glossary Group//EN" doctype-system="glossgroup.dtd"/>-->
- <xsl:strip-space elements="*"/>
-
-
-
-
-
- <xsl:param name="p5dkp.entities-generated:basedir" />
- <xsl:param name="p5dkp.entities-generated:debug"/>
- <xsl:param name="p5dkp:xsd" required="yes"/>
- <xsl:param name="p5dkp.entities:xsd" required="yes"/>
-
- <xsl:param name="p5dkp.repository" required="yes"/> <!-- will output there -->
- <xsl:param name="p5dkp.entities-generated:xsd" required="yes"/>
- <xsl:param name="p5dkp.entities-generated.xsd.p5frc.build_complexType.xml" required="yes"/>
-
- <xsl:param name="p5dkp-er:xsd" required="yes"/>
-
- <xsl:param name="p5dkp-er:prefix.prefix" select="'p5dkp-er.'"/>
- <xsl:param name="p5dkp-er:file.prefix" select="'p5dkp-er.'"/>
- <xsl:param name="p5dkp-er:targetNamespace.fragment" select="'http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/dita_kosztorys_projektowy/p5dkp.entities.'"/>
- <xsl:param name="p5dkp.entities-generated:entity.name.prefix" select="'entities__x3A__'"/>
- <!--<xsl:param name="p5dkp.entities:prefix" select="'p5dkp.entities'"/>--> <!-- to replace to local -->
- <!--<xsl:param name="p5dkp.entities:targetNamespace" select="'http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/dita_kosztorys_projektowy/p5dkp.entities.xsd'"/>-->
-
- <xsl:include href="p5dkp.entities.param.xsl"/>
-
- <xsl:include href="p5dkp.entities-generated.functions.xsl"/>
- <xsl:include href="../flat_relation_cache/p5frc.build_complexType.xsl"/>
-
- <!-- template to generate from p5dkp.entities-relations.xsd
- p5dkp.entities-generated.xsd (like p5dkp:xsd )
- with flat_relation_cache and asserts calculations to then follow
- -->
-
-
- <xsl:template mode="p5dkp.entities-generated:p5frc.build_complexType.xmlp5frc.build_complexType.xml" match="schema" xpath-default-namespace="http://www.w3.org/2001/XMLSchema">
- <xsl:copy copy-namespaces="yes">
- <xsl:copy-of select="@vc:minVersion"/>
- <xsl:copy-of select="@elementFormDefault"/>
- <xsl:attribute name="targetNamespace" select="'http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/dita_kosztorys_projektowy/p5dkp.entities-generated.xsd'"/>
- <xsl:if test="number($p5dkp.entities-generated:debug) > 3"><xsl:message>#44 match mode="p5dkp.entities-generated:xsd" match="schema" </xsl:message></xsl:if>
- <xsl:apply-templates mode="p5frc:build_complexType" select="*"/>
- </xsl:copy>
- </xsl:template>
-
- <xsl:template mode="p5dkp.entities-generated:xsd" match="schema" xpath-default-namespace="http://www.w3.org/2001/XMLSchema">
- <xsl:copy copy-namespaces="yes">
- <!--<xsl:copy-of select="namespace::node()/*" xpath-default-namespace="http://www.w3.org/2001/XMLSchema"/>-->
- <xsl:apply-templates mode="p5dkp.entities-generated:p5dkp-er.entity.namespaces" select="complexType" xpath-default-namespace="http://www.w3.org/2001/XMLSchema">
- <xsl:with-param name="p5dkp.entities-generated:targetNamespace" select="'xxxxx'"/>
- </xsl:apply-templates>
- <xsl:copy-of select="@vc:minVersion"/>
- <xsl:copy-of select="@elementFormDefault"/>
- <xsl:attribute name="targetNamespace" select="'http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/dita_kosztorys_projektowy/p5dkp.entities-generated.xsd'"/>
- <xsl:if test="number($p5dkp.entities-generated:debug) > 3"><xsl:message>#63 match mode="p5dkp.entities-generated:xsd" match="schema" </xsl:message></xsl:if>
- <xsl:comment>#74 testing namespaces</xsl:comment>
- <!--<xs:import
- namespace="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/dita_kosztorys_projektowy/p5dkp.entities.xsd"
- schemaLocation="{$p5dkp.entities:xsd}"/>-->
- <!--<xsl:copy-of select="*" copy-namespaces="no"/>-->
- <xsl:apply-templates mode="p5dkp.entities-generated:xsd" xpath-default-namespace="http://www.w3.org/2001/XMLSchema"/>
- <xsl:comment>#84 eof copy=* ?</xsl:comment>
- <xsl:apply-templates mode="p5dkp.entities-generated:p5dkp-er.entity"/>
-
- </xsl:copy>
- </xsl:template>
-
-
- <xsl:template mode="p5dkp.entities-generated:xsd" match="*" xpath-default-namespace="http://www.w3.org/2001/XMLSchema">
- <xsl:copy copy-namespaces="no">
- <xsl:copy-of select="@*"/>
- <xsl:apply-templates mode="#current"/>
- </xsl:copy>
- </xsl:template>
-
- <xsl:template mode="p5dkp.entities-generated:xsd" match="group[ parent::group ]" xpath-default-namespace="http://www.w3.org/2001/XMLSchema">
- <xsl:message>#100 mode="p5dkp.entities-generated:xsd" ignored=<xsl:value-of select="name()" xpath-default-namespace="http://www.w3.org/2001/XMLSchema"/>; @* = <xsl:copy-of select="@*" copy-namespaces="no"/></xsl:message>
- </xsl:template>
-
-
- <xsl:template mode="p5dkp.entities-generated:p5dkp-er.entity" match="*|text()|comment()"/>
-
- <xsl:template mode="p5dkp.entities-generated:p5dkp-er.entity" xpath-default-namespace="http://www.w3.org/2001/XMLSchema" match="complexType">
- <xsl:variable name="p5dkp.entities-generated:p5dkp-er.entity.result-document" select="p5dkp.entities-generated:p5dkp-er.entity.result-document.from.complexType(.)"/>
- <xsl:variable name="p5dkp.entities-generated:p5dkp-er.entity">
- <p5dkp.entities-generated:p5dkp-er.entity>
- <xsl:attribute name="p5dkp.entities-generated:p5dkp-er.entity.result-document" select="$p5dkp.entities-generated:p5dkp-er.entity.result-document" xpath-default-namespace="http://www.w3.org/2001/XMLSchema"/>
- <xsl:element name="xs:schema">
- <!--<xsl:namespace name="{p5dkp.entities-generated:p5dkp-er.entity.prefix.from.complexType(.)}" select="p5dkp.entities-generated:p5dkp-er.entity.targetNamespace.from.complexType(.)"/>-->
- <xsl:apply-templates mode="p5dkp.entities-generated:p5dkp-er.entity.namespaces" select="root()/schema/complexType" xpath-default-namespace="http://www.w3.org/2001/XMLSchema">
- <xsl:with-param name="p5dkp.entities-generated:targetNamespace" select="p5dkp.entities-generated:p5dkp-er.entity.targetNamespace.from.complexType(.)"/>
- </xsl:apply-templates>
-
- <xsl:copy-of select="doc($p5dkp.entities:xsd)/schema/namespace::*" xpath-default-namespace="http://www.w3.org/2001/XMLSchema"/>
-
- <xsl:copy-of select="root()/schema/@vc:minVersion" xpath-default-namespace="http://www.w3.org/2001/XMLSchema"/>
- <xsl:copy-of select="root()/schema/@elementFormDefault" xpath-default-namespace="http://www.w3.org/2001/XMLSchema"/>
-
- <xsl:attribute name="targetNamespace" select="p5dkp.entities-generated:p5dkp-er.entity.targetNamespace.from.complexType(.)"/>
-
- <xs:annotation>
- <xs:documentation>#126 generated by p5dkp.entities-generated:p5dkp-er.entity</xs:documentation>
- </xs:annotation>
-
- <xs:import
- namespace="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/dita_kosztorys_projektowy/p5dkp.entities.xsd"
- schemaLocation="{p5frc:try.import.fix.schemaLocation.path.nodoc($p5dkp.entities:xsd,$p5dkp.repository)}"/>
-
- <xsl:comment>#115 lower mode="p5dkp.entities-generated:p5dkp.entities.import" select="doc(p5frc:try.import.fix.schemaLocation.path.nodoc($p5dkp.entities:xsd,$p5dkp.repository))/schema/import" </xsl:comment>
- <xsl:apply-templates mode="p5dkp.entities-generated:p5dkp.entities.import" select="doc(p5frc:try.import.fix.schemaLocation.path.nodoc($p5dkp.entities:xsd,$p5dkp.repository))/schema/import" xpath-default-namespace="http://www.w3.org/2001/XMLSchema"/>
-
-
-
- <xsl:comment>#114 lower mode="p5dkp.entities-generated:p5dkp-er.entity.import" select="root()/schema/complexType" </xsl:comment>
- <xsl:apply-templates mode="p5dkp.entities-generated:p5dkp-er.entity.import" select="root()/schema/complexType" xpath-default-namespace="http://www.w3.org/2001/XMLSchema">
- <xsl:with-param name="p5dkp.entities-generated:targetNamespace" select="p5dkp.entities-generated:p5dkp-er.entity.targetNamespace.from.complexType(.)"/>
- </xsl:apply-templates>
-
-
- <xs:complexType name="entities">
- <xs:complexContent>
- <xs:extension base="p5dkp.entities:entities"/>
- </xs:complexContent>
- </xs:complexType>
-
-
-
-
- <xs:complexType name="{@name}">
- <xs:complexContent>
- <xs:extension base="p5dkp.entities:entities">
- <xs:sequence>
- <xs:group ref="{$p5dkp-er:prefix.prefix}{@name}:{@name}"/>
- </xs:sequence>
- <xs:attribute fixed="ditamap" name="format" type="xs:string"/>
- <xs:attribute name="keyref" type="xs:string"/>
- <xs:attribute name="keys" type="xs:string"/>
- <xs:attribute name="keys.keyscope" type="xs:string"/>
- </xs:extension>
- </xs:complexContent>
- </xs:complexType>
-
-
- <xsl:comment>#165 ref to local group p5dkp.entities-generated:p5dkp-er.entity.group</xsl:comment>
- <xs:group name="{@name}">
- <xs:sequence>
- <xsl:apply-templates mode="p5dkp.entities-generated:p5dkp-er.entity.group" xpath-default-namespace="http://www.w3.org/2001/XMLSchema">
- <xsl:with-param name="p5dkp.entities-generated:entity" select="p5dkp.entities-generated:p5dkp-er.entity.from.complexType(.)"/>
- </xsl:apply-templates>
- </xs:sequence>
- </xs:group>
-
- <xsl:choose>
- <!--/xs:schema/xs:group[1]/sequence/group/group/sequence-->
- <xsl:when test="root()/schema/group[@name='entities']/sequence/group/group/sequence/*" xpath-default-namespace="http://www.w3.org/2001/XMLSchema"><xsl:message>#171 ok found p5dkp.entities-generated:p5dkp-er.entity.group.entities root()/schema/group[@name='entities']/group/group/sequence</xsl:message>
- <xsl:comment>#175 lower: local group name and </xsl:comment>
- <xsl:apply-templates mode="p5dkp.entities-generated:p5dkp-er.entity.group.entities" select="root()/schema/group[@name='entities']/sequence/group/group/sequence/*" xpath-default-namespace="http://www.w3.org/2001/XMLSchema">
- <xsl:with-param name="p5dkp.entities-generated:entity" select="p5dkp.entities-generated:p5dkp-er.entity.from.complexType(.)"/>
- </xsl:apply-templates>
-
- <xsl:comment>#175-B lower: local complexTypes local </xsl:comment> <!--/schema/group /sequence/group/group/sequence/group/group/sequence/group/group/sequence/element-->
- <xsl:apply-templates mode="p5dkp.entities-generated:p5dkp-er.entity.complexTypes.entities" select="root()/schema/group[@name='entities']/sequence/group/group/sequence" xpath-default-namespace="http://www.w3.org/2001/XMLSchema"> <!-- //element bylo -->
- <xsl:with-param name="p5dkp.entities-generated:entity" select="p5dkp.entities-generated:p5dkp-er.entity.from.complexType(.)"/>
- </xsl:apply-templates>
-
- </xsl:when>
- <xsl:otherwise><xsl:message terminate="yes">#171-B ERROR NOT found p5dkp.entities-generated:p5dkp-er.entity.group.entities root()/schema/group[@name='entities']/sequence/group/group/sequence/*
- <xsl:copy-of select="root()/schema/group[@name='entities']/sequence" xpath-default-namespace="http://www.w3.org/2001/XMLSchema" copy-namespaces="no"></xsl:copy-of>
- </xsl:message></xsl:otherwise>
- </xsl:choose>
-
- </xsl:element>
- </p5dkp.entities-generated:p5dkp-er.entity>
- </xsl:variable>
- <!--<xsl:copy-of select="$p5dkp.entities-generated:p5dkp-er.entity"/>-->
- <xsl:message>#194 result-document href="{$p5dkp.entities-generated:p5dkp-er.entity.result-document} = <xsl:value-of select="$p5dkp.entities-generated:p5dkp-er.entity.result-document"/>;</xsl:message>
- <xsl:result-document href="{$p5dkp.entities-generated:p5dkp-er.entity.result-document}">
- <xsl:copy-of select="$p5dkp.entities-generated:p5dkp-er.entity/p5dkp.entities-generated:p5dkp-er.entity/*"/>
- </xsl:result-document>
- </xsl:template>
-
-
-
-
-
- <!--<xsl:template mode="p5dkp.entities-generated:p5dkp-er.entity.group.entities" xpath-default-namespace="" match="*">
- <xsl:param name="p5dkp.entities-generated:entity" required="yes"/>
- <xsl:comment>#205 mode="p5dkp.entities-generated:p5dkp-er.entity.group.entities" match="*" xpath-default-namespace="" </xsl:comment>
- <xsl:copy copy-namespaces="no">
- <xsl:apply-templates mode="#current" xpath-default-namespace="http://www.w3.org/2001/XMLSchema">
- <xsl:with-param name="p5dkp.entities-generated:entity" select="$p5dkp.entities-generated:entity"/>
- </xsl:apply-templates>
- </xsl:copy>
- </xsl:template>-->
-
-
- <xsl:template mode="p5dkp.entities-generated:p5dkp-er.entity.complexTypes.entities" match="element[@name]" xpath-default-namespace="http://www.w3.org/2001/XMLSchema">
- <xsl:param name="p5dkp.entities-generated:entity" required="yes"/>
- <xsl:comment>#2322 mode="p5dkp.entities-generated:p5dkp-er.entity.complexTypes.entities" match="group" <xsl:copy-of select="@*"/> ; , next/* = <xsl:value-of select="*/name()" xpath-default-namespace=""/></xsl:comment>
- <xs:complexType>
- <xsl:apply-templates mode="p5dkp.entities-generated:p5dkp-er.entity.complexTypes.entities" select="@name" xpath-default-namespace="http://www.w3.org/2001/XMLSchema">
- <xsl:with-param name="p5dkp.entities-generated:entity" select="$p5dkp.entities-generated:entity" xpath-default-namespace="http://www.w3.org/2001/XMLSchema"/>
- </xsl:apply-templates>
- <xs:complexContent>
- <xs:extension base="{@type}"/>
- </xs:complexContent>
- </xs:complexType>
- </xsl:template>
-
-
- <xsl:template mode="p5dkp.entities-generated:p5dkp-er.entity.complexTypes.entities" match="*" xpath-default-namespace="http://www.w3.org/2001/XMLSchema">
- <xsl:param name="p5dkp.entities-generated:entity" required="yes"/>
- <xsl:comment>#224 igroned element match="*" name()= <xsl:value-of select="name()" xpath-default-namespace="http://www.w3.org/2001/XMLSchema"/> ; <xsl:copy-of select="@*" xpath-default-namespace="http://www.w3.org/2001/XMLSchema"/></xsl:comment>
- <xsl:apply-templates mode="#current">
- <xsl:with-param name="p5dkp.entities-generated:entity" select="$p5dkp.entities-generated:entity"/>
- </xsl:apply-templates>
- </xsl:template>
-
-
- <xsl:template mode="p5dkp.entities-generated:p5dkp-er.entity.complexTypes.entities" match="element[@ref]" xpath-default-namespace="http://www.w3.org/2001/XMLSchema">
- <xsl:comment>#245 igroned element @ref = <xsl:value-of select="@ref"/></xsl:comment>
- </xsl:template>
-
- <xsl:template mode="p5dkp.entities-generated:p5dkp-er.entity.group.entities" match="group" xpath-default-namespace="http://www.w3.org/2001/XMLSchema">
- <xsl:param name="p5dkp.entities-generated:entity" required="yes"/>
- <xsl:comment>#202 mode="p5dkp.entities-generated:p5dkp-er.entity.group.entities" match="group" <xsl:copy-of select="@*"/> ; <xsl:copy-of select="@*" xpath-default-namespace=""/> , next/* = <xsl:value-of select="*/name()" xpath-default-namespace=""/></xsl:comment>
- <xsl:copy copy-namespaces="no">
- <xsl:apply-templates mode="p5dkp.entities-generated:p5dkp-er.entity.group.entities.ref" select="@*" xpath-default-namespace="http://www.w3.org/2001/XMLSchema">
- <xsl:with-param name="p5dkp.entities-generated:entity" select="$p5dkp.entities-generated:entity" xpath-default-namespace="http://www.w3.org/2001/XMLSchema"/>
- </xsl:apply-templates>
- <!--<xsl:attribute name="name" select="sub"/>-->
- <xsl:call-template name="p5dkp.entities-generated:p5dkp-er.entity.group.entities.child" xpath-default-namespace="http://www.w3.org/2001/XMLSchema">
- <xsl:with-param name="p5dkp.entities-generated:entity" select="$p5dkp.entities-generated:entity" xpath-default-namespace="http://www.w3.org/2001/XMLSchema"/>
- </xsl:call-template>
-
- </xsl:copy>
- </xsl:template>
-
- <xsl:template mode="p5dkp.entities-generated:p5dkp-er.entity.group.entities p5dkp.entities-generated:p5dkp-er.entity.complexTypes.entities" xpath-default-namespace="http://www.w3.org/2001/XMLSchema" match="text()|comment()"/>
- <xsl:template mode="p5dkp.entities-generated:p5dkp-er.entity.group.entities.child" xpath-default-namespace="http://www.w3.org/2001/XMLSchema" match="text()|comment()">
- <!--<xsl:copy-of select="." copy-namespaces="no"/>-->
- </xsl:template>
-
- <xsl:template name="p5dkp.entities-generated:p5dkp-er.entity.group.entities.child" xpath-default-namespace="http://www.w3.org/2001/XMLSchema">
- <xsl:param name="p5dkp.entities-generated:entity" required="yes"/>
- <xs:sequence>
- <xsl:apply-templates mode="p5dkp.entities-generated:p5dkp-er.entity.group.entities.child" xpath-default-namespace="http://www.w3.org/2001/XMLSchema"> <!-- select="*/*" todo testin 2018-06 -->
- <xsl:with-param name="p5dkp.entities-generated:entity" select="$p5dkp.entities-generated:entity" xpath-default-namespace="http://www.w3.org/2001/XMLSchema"/>
- </xsl:apply-templates>
- </xs:sequence>
- </xsl:template>
-
- <xsl:template mode="p5dkp.entities-generated:p5dkp-er.entity.group.entities.child" xpath-default-namespace="http://www.w3.org/2001/XMLSchema" match="*">
- <xsl:param name="p5dkp.entities-generated:entity" required="yes"/>
- <xsl:comment>#191 mode="p5dkp.entities-generated:p5dkp-er.entity.group.entities" match="*"
- p5dkp.entities-generated:p5dkp-er.entity.prefix.from.entity(<xsl:value-of select="@type"/>) $$p5dkp.entities-generated:entity = <xsl:value-of select="$p5dkp.entities-generated:entity"/>;
- <!--p5dkp.entities-generated:fix.entity.type(.,$p5dkp.entities-generated:entity) = <xsl:value-of select="p5dkp.entities-generated:fix.entity.type(.,$p5dkp.entities-generated:entity)"/>-->
- p5dkp.entities-generated:p5dkp-er.entity.prefix.from.entity($p5dkp.entities-generated:entity) = <xsl:value-of select="p5dkp.entities-generated:p5dkp-er.entity.prefix.from.entity($p5dkp.entities-generated:entity)"/>
- </xsl:comment>
- <xsl:copy copy-namespaces="no">
- <xsl:apply-templates mode="#current" select="@*">
- <xsl:with-param name="p5dkp.entities-generated:entity" select="$p5dkp.entities-generated:entity" xpath-default-namespace="http://www.w3.org/2001/XMLSchema"/>
- </xsl:apply-templates>
- <xsl:apply-templates mode="#current" xpath-default-namespace="http://www.w3.org/2001/XMLSchema">
- <xsl:with-param name="p5dkp.entities-generated:entity" select="$p5dkp.entities-generated:entity"/>
- </xsl:apply-templates>
- </xsl:copy>
- </xsl:template>
-
-
-
- <xsl:template mode="p5dkp.entities-generated:p5dkp-er.entity.group.entities.child" xpath-default-namespace="http://www.w3.org/2001/XMLSchema" match="annotation|documentation"/>
-
-
- <xsl:template mode="p5dkp.entities-generated:p5dkp-er.entity.group.entities.child" xpath-default-namespace="http://www.w3.org/2001/XMLSchema" match="group|sequence">
- <xsl:param name="p5dkp.entities-generated:entity" required="yes"/>
- <xsl:comment>
- #249 mode="p5dkp.entities-generated:p5dkp-er.entity.group.entities" match="group|sequence|annotation|documentation" - skipping name()=<xsl:value-of select="name()"/> /@ = <xsl:copy-of select="@*" copy-namespaces="no"/> </xsl:comment>
- <xsl:apply-templates mode="#current" xpath-default-namespace="http://www.w3.org/2001/XMLSchema">
- <xsl:with-param name="p5dkp.entities-generated:entity" select="$p5dkp.entities-generated:entity"/>
- </xsl:apply-templates>
- </xsl:template>
-
- <xsl:template match="@*" mode="p5dkp.entities-generated:p5dkp-er.entity.complexTypes.entities" xpath-default-namespace="http://www.w3.org/2001/XMLSchema">
- <xsl:copy-of select="." copy-namespaces="no"/>
- </xsl:template>
- <xsl:template match="@name" mode="p5dkp.entities-generated:p5dkp-er.entity.group.entities.child p5dkp.entities-generated:p5dkp-er.entity.complexTypes.entities" xpath-default-namespace="http://www.w3.org/2001/XMLSchema">
- <xsl:param name="p5dkp.entities-generated:entity" required="yes"/>
- <xsl:attribute name="name" select="p5dkp.entities-generated:fix.entity.name(.,$p5dkp.entities-generated:entity)"/>
- </xsl:template>
-
- <xsl:template match="@minOccurs" mode="p5dkp.entities-generated:p5dkp-er.entity.group.entities.child p5dkp.entities-generated:p5dkp-er.entity.group.entities.ref" xpath-default-namespace="http://www.w3.org/2001/XMLSchema">
- <xsl:choose>
- <xsl:when test="../local-name()='group'"/>
- <xsl:otherwise><xsl:copy-of select="."/></xsl:otherwise>
- </xsl:choose>
- </xsl:template>
-
-
-
-
- <xsl:template match="@*" mode="p5dkp.entities-generated:p5dkp-er.entity.group.entities.child" xpath-default-namespace="http://www.w3.org/2001/XMLSchema">
- <xsl:copy-of select="." copy-namespaces="no"/>
- </xsl:template>
-
-
-
- <xsl:template match="@type" mode="p5dkp.entities-generated:p5dkp-er.entity.group.entities.child" xpath-default-namespace="http://www.w3.org/2001/XMLSchema">
- <xsl:param name="p5dkp.entities-generated:entity" required="yes"/>
- <xsl:attribute name="type" select="p5dkp.entities-generated:fix.entity.type(.,$p5dkp.entities-generated:entity)"/>
- </xsl:template>
-
- <xsl:template match="@*" mode="p5dkp.entities-generated:p5dkp-er.entity.group.entities.ref" xpath-default-namespace="http://www.w3.org/2001/XMLSchema">
- <xsl:copy-of select="." copy-namespaces="no"/>
- </xsl:template>
-
- <xsl:template match="@ref" mode="p5dkp.entities-generated:p5dkp-er.entity.group.entities.ref" xpath-default-namespace="http://www.w3.org/2001/XMLSchema">
- <xsl:param name="p5dkp.entities-generated:entity" required="yes"/>
- <xsl:attribute name="name" select="substring-after(.,':')"/>
- </xsl:template>
-
-
-
-
-
-
-
-
- <xsl:template mode="p5dkp.entities-generated:p5dkp-er.entity.group" match="*" xpath-default-namespace="http://www.w3.org/2001/XMLSchema">
- <xsl:param name="p5dkp.entities-generated:entity" required="yes"/>
- <xsl:apply-templates mode="#current">
- <xsl:with-param name="p5dkp.entities-generated:entity" select="$p5dkp.entities-generated:entity"/>
- </xsl:apply-templates>
- </xsl:template>
-
- <xsl:template mode="p5dkp.entities-generated:p5dkp-er.entity.group" match="group" xpath-default-namespace="http://www.w3.org/2001/XMLSchema">
- <xsl:param name="p5dkp.entities-generated:entity" required="yes"/>
- <!--<xsl:apply-templates mode=""></xsl:apply-templates>-->
- <xsl:comment>#234 mode="p5dkp.entities-generated:p5dkp-er.entity.group" match="group" </xsl:comment>
- <xsl:copy copy-namespaces="no">
- <xsl:copy-of select="@*"/>
- <!--<xsl:apply-templates mode="#current" xpath-default-namespace="http://www.w3.org/2001/XMLSchema">
- <xsl:with-param name="p5dkp.entities-generated:entity" select="$p5dkp.entities-generated:entity"/>
- </xsl:apply-templates>-->
- </xsl:copy>
- </xsl:template>
-
-
- <xsl:template mode="p5dkp.entities-generated:p5dkp-er.entity.group" match="element" xpath-default-namespace="http://www.w3.org/2001/XMLSchema">
- <xsl:param name="p5dkp.entities-generated:entity" required="yes"/>
- <xsl:apply-templates mode="#current">
- <xsl:with-param name="p5dkp.entities-generated:entity" select="$p5dkp.entities-generated:entity"/>
- </xsl:apply-templates>
- </xsl:template>
-
- <xsl:template mode="p5dkp.entities-generated:p5dkp-er.entity.group" match="text()|comment()" xpath-default-namespace="http://www.w3.org/2001/XMLSchema"/>
-
-
-
- <xsl:template mode="p5dkp.entities-generated:p5dkp-er.entity.import p5dkp.entities-generated:p5dkp-er.entity.namespaces" match="*|comment()|text()" xpath-default-namespace="http://www.w3.org/2001/XMLSchema"/>
-
-
- <xsl:template mode="p5dkp.entities-generated:p5dkp-er.entity.namespaces" match="complexType" xpath-default-namespace="http://www.w3.org/2001/XMLSchema">
- <xsl:param name="p5dkp.entities-generated:targetNamespace" required="yes"/>
- <xsl:namespace name="{p5dkp.entities-generated:p5dkp-er.entity.prefix.from.complexType(.)}" select="p5dkp.entities-generated:p5dkp-er.entity.targetNamespace.from.complexType(.)"/>
-
- </xsl:template>
-
- <xsl:template mode="p5dkp.entities-generated:p5dkp-er.entity.import" match="complexType" xpath-default-namespace="http://www.w3.org/2001/XMLSchema">
- <xsl:param name="p5dkp.entities-generated:targetNamespace" required="yes"/>
- <xsl:choose>
- <xsl:when test="$p5dkp.entities-generated:targetNamespace = p5dkp.entities-generated:p5dkp-er.entity.targetNamespace.from.complexType(.)">
- <xsl:comment>#384 ignored same $p5dkp.entities-generated:targetNamespace = <xsl:value-of select="$p5dkp.entities-generated:targetNamespace"/></xsl:comment>
- </xsl:when>
- <xsl:otherwise>
- <xs:import
- namespace="{p5dkp.entities-generated:p5dkp-er.entity.targetNamespace.from.complexType(.)}"
- schemaLocation="{p5frc:try.import.fix.schemaLocation.path.nodoc(p5dkp.entities-generated:p5dkp-er.entity.schemaLocation.from.complexType(.),$p5dkp.repository)}"/>
- </xsl:otherwise>
- </xsl:choose>
-
- </xsl:template>
-
-
- <xsl:template mode="p5dkp.entities-generated:p5dkp.entities.import" match="import" xpath-default-namespace="http://www.w3.org/2001/XMLSchema">
- <xsl:copy copy-namespaces="no">
- <xsl:copy-of select="@namespace"/>
- <xsl:attribute name="schemaLocation" select="p5frc:try.import.fix.schemaLocation.path.nodoc(@schemaLocation,$p5dkp:basedir)"/>
- <!--<xsl:attribute name="schemaLocation" select="concat($p5dkp.repository,'/',@schemaLocation)"/>-->
- </xsl:copy>
- </xsl:template>
-
-
- </xsl:stylesheet>
|