|
|
@@ -599,6 +599,141 @@
|
|
|
</xsl:choose>
|
|
|
</xsl:template>
|
|
|
|
|
|
+
|
|
|
+ <!-- -->
|
|
|
+
|
|
|
+
|
|
|
+ <xsl:template name="system_cache__appinfo:build_complexType__simpleType">
|
|
|
+ <xsl:param name="element" select="$element"/> <!-- mozna podawac prefix w samym elemencie -->
|
|
|
+ <xsl:param name="path"/>
|
|
|
+ <xsl:param name="prefix" select="substring-before($element,':')"/>
|
|
|
+ <xsl:param name="namespace_uri_param"/>
|
|
|
+ <xsl:param name="cache" select="$cache"/> <!-- or refresh -->
|
|
|
+ <xsl:param name="name" select="substring-after($element,':')"/>
|
|
|
+ <xsl:variable name="path">
|
|
|
+ <xsl:value-of select="concat($prefix,'/',$element)"/>
|
|
|
+ </xsl:variable>
|
|
|
+ <!--<xsl:variable name="element-filename" select="system_cache__appinfo:escape_object_prefix_to_string($element)"/>-->
|
|
|
+ <!--<xsl:variable name="element-filename" select="system_cache__appinfo:element-filename('build_element',$element,$prefix,$namespace_uri_param)" >
|
|
|
+ <xsl:choose>
|
|
|
+ <xsl:when test="$prefix">
|
|
|
+ <xsl:value-of select="system_cache__appinfo:escape_object_prefix_to_string(concat($prefix,':',$element))"/>
|
|
|
+ </xsl:when>
|
|
|
+ <xsl:when test="$namespace_uri_param">
|
|
|
+ <xsl:value-of select="system_cache__appinfo:escape_object_prefix_to_string(concat($namespace_uri_param,':',$element))"/>
|
|
|
+ </xsl:when>
|
|
|
+ <xsl:otherwise>
|
|
|
+ <xsl:value-of select="system_cache__appinfo:escape_object_prefix_to_string($element)"/>
|
|
|
+ </xsl:otherwise>
|
|
|
+ </xsl:choose>
|
|
|
+ </xsl:variable>-->
|
|
|
+ <xsl:variable name="if-prepare" select="unparsed-text-available(system_cache__appinfo:element-filename.prepare('build_complexType__simpleType',$element,$prefix,$namespace_uri_param))"/>
|
|
|
+ <xsl:choose>
|
|
|
+ <xsl:when test="unparsed-text-available(system_cache__appinfo:element-filename.complete('build_complexType__simpleType',$name,$prefix,$namespace_uri_param)) and $cache='read' and not($if-prepare) "> <!-- concat($default_db.instance.xml,'/build_complexType/element-',$element-filename,'.xml' -->
|
|
|
+ <xsl:message>#629a. hit from cache for <xsl:value-of select="system_cache__appinfo:element-filename.complete('build_complexType__simpleType',$name,$prefix,$namespace_uri_param)"/> </xsl:message>
|
|
|
+ <xsl:copy-of select="doc(system_cache__appinfo:element-filename('build_complexType__simpleType',$name,$prefix,$namespace_uri_param))"/> <!-- concat($default_db.instance.xml,'/build_complexType/element-',$element-filename,'.xml') -->
|
|
|
+ </xsl:when>
|
|
|
+ <xsl:otherwise>
|
|
|
+ <xsl:message>#629b NO cache for <xsl:value-of select="system_cache__appinfo:element-filename('build_complexType__simpleType',$name,$prefix,$namespace_uri_param)"/> ; ($element="<xsl:value-of select="$element"/>"); ($prefix="<xsl:value-of select="$prefix"/>"); ($name="<xsl:value-of select="$name"/>");</xsl:message>
|
|
|
+
|
|
|
+ <xsl:choose>
|
|
|
+ <xsl:when test="$if-prepare">
|
|
|
+ <xsl:message>#629c !!!! $if-prepare = <xsl:value-of select="$if-prepare"/> . Skipping output to file</xsl:message>
|
|
|
+ <xsl:choose>
|
|
|
+ <xsl:when test="$namespace_uri_param">
|
|
|
+ <xsl:message>#629-642 apply with prefix="<xsl:value-of select="$prefix"/>";</xsl:message>
|
|
|
+ <xsl:apply-templates mode="system_cache__appinfo:build_flat_schema" select="$procesy5_system_schema/system_cache__appinfo:get_all_xsd_list/(system_cache__appinfo:get_all_xsd|system_cache__appinfo:get_all_xsd_external_schema_id_namespace_prefix)/schema[@targetNamespace = $namespace_uri_param]/simpleType[@name = $name]" xpath-default-namespace="http://www.w3.org/2001/XMLSchema">
|
|
|
+ <xsl:with-param name="element" select="$element"/>
|
|
|
+ <xsl:with-param name="namespace_uri_param" select="$namespace_uri_param"/>
|
|
|
+ <xsl:with-param name="prefix" select="$prefix"/>
|
|
|
+ <xsl:with-param name="path" select="$path"/>
|
|
|
+ <xsl:with-param name="targetNamespace" select="$procesy5_system_schema/system_cache__appinfo:get_all_xsd_list/(system_cache__appinfo:get_all_xsd|system_cache__appinfo:get_all_xsd_external_schema_id_namespace_prefix)/schema[@targetNamespace = namespace::*[ name() = $prefix ]]/@targetNamespace" xpath-default-namespace="http://www.w3.org/2001/XMLSchema"/>
|
|
|
+ </xsl:apply-templates>
|
|
|
+ </xsl:when>
|
|
|
+ <xsl:when test="not($procesy5_system_schema/system_cache__appinfo:get_all_xsd_list/(system_cache__appinfo:get_all_xsd|system_cache__appinfo:get_all_xsd_external_schema_id_namespace_prefix)/schema[@targetNamespace = namespace::*[ name() = $prefix ]]/simpleType[@name = $name])" xpath-default-namespace="http://www.w3.org/2001/XMLSchema">
|
|
|
+ <xsl:message terminate="yes">#629 t not found $prefix="<xsl:value-of select="$prefix"/>"; $name="<xsl:value-of select="$name"/>";
|
|
|
+ count="<xsl:value-of select="count($procesy5_system_schema/system_cache__appinfo:get_all_xsd_list/(system_cache__appinfo:get_all_xsd|system_cache__appinfo:get_all_xsd_external_schema_id_namespace_prefix)/schema[@targetNamespace = namespace::*[ name() = $prefix ]])"/>";
|
|
|
+ test Query Local = "<xsl:value-of select="count($procesy5_system_schema/system_cache__appinfo:get_all_xsd_list/(system_cache__appinfo:get_all_xsd|system_cache__appinfo:get_all_xsd_external_schema_id_namespace_prefix)/schema[@targetNamespace = namespace::*[ name() = 'get_wfs_recurse_xsl' ]]/simpleType[@name='Query.xml.local'])"/>";
|
|
|
+ test Query Local 3 = "<xsl:value-of select="count($procesy5_system_schema/system_cache__appinfo:get_all_xsd_list/(system_cache__appinfo:get_all_xsd|system_cache__appinfo:get_all_xsd_external_schema_id_namespace_prefix)/schema[@targetNamespace = 'https://biuro.biall-net.pl/wfs/patterns/patterns/A_STATUS.xsd']/simpleType[@name='Query.xml.local'])"/>";
|
|
|
+ test Query Local 4 = "<xsl:value-of select="count($procesy5_system_schema/system_cache__appinfo:get_all_xsd_list/(system_cache__appinfo:get_all_xsd|system_cache__appinfo:get_all_xsd_external_schema_id_namespace_prefix)/schema[@targetNamespace = 'https://biuro.biall-net.pl/wfs/patterns/patterns/A_STATUS.xsd'])"/>";
|
|
|
+ test Query Local 5 = "<xsl:value-of select="count($procesy5_system_schema/system_cache__appinfo:get_all_xsd_list/(system_cache__appinfo:get_all_xsd|system_cache__appinfo:get_all_xsd_external_schema_id_namespace_prefix)/*[@targetNamespace = 'https://biuro.biall-net.pl/wfs/patterns/patterns/A_STATUS.xsd'])"/>";
|
|
|
+ test Query Local 5/schema = "<xsl:value-of select="count($procesy5_system_schema/system_cache__appinfo:get_all_xsd_list/(system_cache__appinfo:get_all_xsd|system_cache__appinfo:get_all_xsd_external_schema_id_namespace_prefix)/schema[@targetNamespace = 'https://biuro.biall-net.pl/wfs/patterns/patterns/A_STATUS.xsd'])"/>";
|
|
|
+ test Query Local 5/schema+target = "<xsl:value-of select="count($procesy5_system_schema/system_cache__appinfo:get_all_xsd_list/(system_cache__appinfo:get_all_xsd|system_cache__appinfo:get_all_xsd_external_schema_id_namespace_prefix)/schema[@targetNamespace = 'https://biuro.biall-net.pl/wfs/patterns/patterns/A_STATUS.xsd'])" xpath-default-namespace="http://www.w3.org/2001/XMLSchema"/>";
|
|
|
+ test Query Local 5/* = "<xsl:value-of select="count($procesy5_system_schema/system_cache__appinfo:get_all_xsd_list/(system_cache__appinfo:get_all_xsd|system_cache__appinfo:get_all_xsd_external_schema_id_namespace_prefix)/*[ @targetNamespace = namespace::*[ name() = $prefix ]] )"/>";
|
|
|
+ test Query Local 6 = "<xsl:value-of select="count($procesy5_system_schema/system_cache__appinfo:get_all_xsd_list/(system_cache__appinfo:get_all_xsd|system_cache__appinfo:get_all_xsd_external_schema_id_namespace_prefix)/*)"/>";
|
|
|
+ </xsl:message>
|
|
|
+ </xsl:when>
|
|
|
+ <xsl:otherwise>
|
|
|
+ <xsl:message>#629-663 apply with prefix="<xsl:value-of select="$prefix"/>"; $path="<xsl:value-of select="$path"/>"</xsl:message>
|
|
|
+ <xsl:apply-templates mode="system_cache__appinfo:build_flat_schema" select="$procesy5_system_schema/system_cache__appinfo:get_all_xsd_list/(system_cache__appinfo:get_all_xsd|system_cache__appinfo:get_all_xsd_external_schema_id_namespace_prefix)/schema[@targetNamespace = namespace::*[ name() = $prefix ]]/simpleType[@name = $name]" xpath-default-namespace="http://www.w3.org/2001/XMLSchema">
|
|
|
+ <xsl:with-param name="element" select="$element"/>
|
|
|
+ <xsl:with-param name="prefix" select="$prefix"/>
|
|
|
+ <xsl:with-param name="path" select="$path"/>
|
|
|
+ <xsl:with-param name="targetNamespace" select="$procesy5_system_schema/system_cache__appinfo:get_all_xsd_list/(system_cache__appinfo:get_all_xsd|system_cache__appinfo:get_all_xsd_external_schema_id_namespace_prefix)/schema[@targetNamespace = namespace::*[ name() = $prefix ]]/@targetNamespace" xpath-default-namespace="http://www.w3.org/2001/XMLSchema"/>
|
|
|
+ </xsl:apply-templates>
|
|
|
+ </xsl:otherwise>
|
|
|
+ </xsl:choose>
|
|
|
+ </xsl:when>
|
|
|
+ <xsl:otherwise>
|
|
|
+ <!-- todo moze nizej? -->
|
|
|
+ <xsl:result-document href="{system_cache__appinfo:element-filename.symlink.prepare('build_complexType__simpleType',$name,$prefix,$namespace_uri_param)}">
|
|
|
+ <prepare/>
|
|
|
+ </xsl:result-document>
|
|
|
+ <xsl:variable name="build_element_cache">
|
|
|
+ <xsl:choose>
|
|
|
+ <xsl:when test="$namespace_uri_param">
|
|
|
+ <xsl:message>#629-679 apply with prefix="<xsl:value-of select="$prefix"/>"; $path="<xsl:value-of select="$path"/>";</xsl:message>
|
|
|
+ <xsl:apply-templates mode="system_cache__appinfo:build_flat_schema" select="$procesy5_system_schema/system_cache__appinfo:get_all_xsd_list/(system_cache__appinfo:get_all_xsd|system_cache__appinfo:get_all_xsd_external_schema_id_namespace_prefix)/schema[@targetNamespace = $namespace_uri_param]/simpleType[@name = $name]" xpath-default-namespace="http://www.w3.org/2001/XMLSchema">
|
|
|
+ <xsl:with-param name="element" select="$element"/>
|
|
|
+ <xsl:with-param name="namespace_uri_param" select="$namespace_uri_param"/>
|
|
|
+ <xsl:with-param name="prefix" select="$prefix"/>
|
|
|
+ <xsl:with-param name="path" select="$path" />
|
|
|
+ <xsl:with-param name="targetNamespace" select="$procesy5_system_schema/system_cache__appinfo:get_all_xsd_list/(system_cache__appinfo:get_all_xsd|system_cache__appinfo:get_all_xsd_external_schema_id_namespace_prefix)/schema[@targetNamespace = namespace::*[ name() = $prefix ]]/@targetNamespace" xpath-default-namespace="http://www.w3.org/2001/XMLSchema"/>
|
|
|
+ </xsl:apply-templates>
|
|
|
+ </xsl:when>
|
|
|
+ <xsl:otherwise>
|
|
|
+ <xsl:message>#629-687 apply with prefix="<xsl:value-of select="$prefix"/>"; $path="<xsl:value-of select="$path"/>"</xsl:message>
|
|
|
+ <xsl:apply-templates mode="system_cache__appinfo:build_flat_schema" select="$procesy5_system_schema/system_cache__appinfo:get_all_xsd_list/(system_cache__appinfo:get_all_xsd|system_cache__appinfo:get_all_xsd_external_schema_id_namespace_prefix)/schema[@targetNamespace = namespace::*[ name() = $prefix ]]/simpleType[@name = $name]" xpath-default-namespace="http://www.w3.org/2001/XMLSchema">
|
|
|
+ <xsl:with-param name="element" select="$element"/>
|
|
|
+ <xsl:with-param name="prefix" select="$prefix"/>
|
|
|
+ <xsl:with-param name="path" select="$path"/>
|
|
|
+ <xsl:with-param name="targetNamespace" select="$procesy5_system_schema/system_cache__appinfo:get_all_xsd_list/(system_cache__appinfo:get_all_xsd|system_cache__appinfo:get_all_xsd_external_schema_id_namespace_prefix)/schema[@targetNamespace = namespace::*[ name() = $prefix ]]/@targetNamespace" xpath-default-namespace="http://www.w3.org/2001/XMLSchema"/>
|
|
|
+ </xsl:apply-templates>
|
|
|
+ </xsl:otherwise>
|
|
|
+ </xsl:choose>
|
|
|
+ </xsl:variable>
|
|
|
+ <xsl:if test="$build_element_cache/*">
|
|
|
+ <xsl:message>629d:build_complexType__simpleType cache try to save: <xsl:value-of select="system_cache__appinfo:element-filename.symlink('build_complexType__simpleType',$name,$prefix,$namespace_uri_param)"/></xsl:message>
|
|
|
+
|
|
|
+ <xsl:result-document href="{system_cache__appinfo:element-filename.symlink('build_complexType__simpleType',$name,$prefix,$namespace_uri_param)}"> <!-- -->
|
|
|
+ <xsl:copy-of select="$build_element_cache"/>
|
|
|
+ </xsl:result-document>
|
|
|
+ <xsl:result-document href="{system_cache__appinfo:element-filename.symlink.complete('build_complexType__simpleType',$name,$prefix,$namespace_uri_param)}">
|
|
|
+ <complete/>
|
|
|
+ </xsl:result-document>
|
|
|
+
|
|
|
+ <!--<xsl:variable name="prefixed_object_info">
|
|
|
+ <xsl:call-template name="system_cache__appinfo:prefixed_object_info">
|
|
|
+ <xsl:with-param name="prefixed_object" select="$element-filename"/>
|
|
|
+ </xsl:call-template>
|
|
|
+ </xsl:variable>-->
|
|
|
+ <xsl:message>629e:build_complexType__simpleType _cache try to save: <xsl:value-of select="system_cache__appinfo:element-filename-prefixed.symlink('build_complexType__simpleType',$name,$prefix,$namespace_uri_param)"/></xsl:message>
|
|
|
+ <xsl:result-document href="{system_cache__appinfo:element-filename-prefixed.symlink('build_complexType__simpleType',$name,$prefix,$namespace_uri_param)}">
|
|
|
+ <xsl:copy-of select="$build_element_cache"/>
|
|
|
+ </xsl:result-document>
|
|
|
+ <xsl:result-document href="{system_cache__appinfo:element-filename-prefixed.symlink.complete('build_complexType__simpleType',$name,$prefix,$namespace_uri_param)}">
|
|
|
+ <complete/>
|
|
|
+ </xsl:result-document>
|
|
|
+ <xsl:copy-of select="$build_element_cache"/>
|
|
|
+ </xsl:if>
|
|
|
+ </xsl:otherwise>
|
|
|
+ </xsl:choose>
|
|
|
+
|
|
|
+ </xsl:otherwise>
|
|
|
+ </xsl:choose>
|
|
|
+ </xsl:template>
|
|
|
+
|
|
|
+
|
|
|
<xsl:template match="annotation" mode="system_cache__appinfo:build_complexType_cache.path" xpath-default-namespace="http://www.w3.org/2001/XMLSchema" priority="9">
|
|
|
<xsl:copy-of select="."/>
|
|
|
</xsl:template>
|
|
|
@@ -2153,8 +2288,8 @@
|
|
|
<xsl:variable name="type_uri" select="ancestor-or-self::*[@targetNamespace][1]/@targetNamespace"/>
|
|
|
<xsl:choose>
|
|
|
<xsl:when test="not($if-prepare) and unparsed-text-available(system_cache__appinfo:element-filename.complete('build_complexType__simpleType',@name,$prefix,$type_uri)) "><!-- and $cache='read' --> <!-- concat($default_db.instance.xml,'/build_complexType/complexType-',$element-filename,'.xml') -->
|
|
|
- <xsl:message>#2101 TODO hit from cache for <xsl:value-of select="system_cache__appinfo:element-filename.complete('build_complexType__simpleType',@name,$prefix,$type_uri)"/> </xsl:message>
|
|
|
- <!--<xsl:copy-of select="doc(system_cache__appinfo:element-filename('build_complexType',$complexType,$prefix,$namespace_uri_param))"/>-->
|
|
|
+ <xsl:message>#2101 TODO-TEST hit from cache for <xsl:value-of select="system_cache__appinfo:element-filename.complete('build_complexType__simpleType',@name,$prefix,$type_uri)"/> </xsl:message>
|
|
|
+ <xsl:copy-of select="doc(system_cache__appinfo:element-filename('build_complexType__simpleType',@name,$prefix,$type_uri))"/>
|
|
|
</xsl:when>
|
|
|
<xsl:otherwise>
|
|
|
<xsl:variable name="prefix">
|