|
@@ -2096,13 +2096,30 @@
|
|
|
<xsl:param name="system_cache__appinfo:root_element_in_schema"/> <!-- @2016-01-16 w przypadku elementow na glownym schemacie, nalezy przetworzyc i wyswietlic simpleType, aby p5_tr_map stworzylo 428a do tego . W przypadku elementow skladowych complexContent na razie nie przetwarzamy simpleType z racji komplikacji przetwarzania p5_tr_map -->
|
|
<xsl:param name="system_cache__appinfo:root_element_in_schema"/> <!-- @2016-01-16 w przypadku elementow na glownym schemacie, nalezy przetworzyc i wyswietlic simpleType, aby p5_tr_map stworzylo 428a do tego . W przypadku elementow skladowych complexContent na razie nie przetwarzamy simpleType z racji komplikacji przetwarzania p5_tr_map -->
|
|
|
<!--<xsl:message>209: simpleType applied! system_cache__appinfo:root_element_in_schema:<xsl:value-of select="$system_cache__appinfo:root_element_in_schema"/>;</xsl:message>-->
|
|
<!--<xsl:message>209: simpleType applied! system_cache__appinfo:root_element_in_schema:<xsl:value-of select="$system_cache__appinfo:root_element_in_schema"/>;</xsl:message>-->
|
|
|
<xsl:variable name="if-prepare" select="unparsed-text-available(system_cache__appinfo:element-filename.prepare('build_complexType__simpleType',@name,$prefix,$targetNamespace))"/>
|
|
<xsl:variable name="if-prepare" select="unparsed-text-available(system_cache__appinfo:element-filename.prepare('build_complexType__simpleType',@name,$prefix,$targetNamespace))"/>
|
|
|
|
|
+ <xsl:variable name="name" select="@name"/>
|
|
|
<xsl:choose>
|
|
<xsl:choose>
|
|
|
<xsl:when test="not($if-prepare) and unparsed-text-available(system_cache__appinfo:element-filename.complete('build_complexType__simpleType',@name,$prefix,$targetNamespace)) "><!-- and $cache='read' --> <!-- concat($default_db.instance.xml,'/build_complexType/complexType-',$element-filename,'.xml') -->
|
|
<xsl:when test="not($if-prepare) and unparsed-text-available(system_cache__appinfo:element-filename.complete('build_complexType__simpleType',@name,$prefix,$targetNamespace)) "><!-- 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,$targetNamespace)"/> </xsl:message>
|
|
<xsl:message>#2101 TODO hit from cache for <xsl:value-of select="system_cache__appinfo:element-filename.complete('build_complexType__simpleType',@name,$prefix,$targetNamespace)"/> </xsl:message>
|
|
|
<!--<xsl:copy-of select="doc(system_cache__appinfo:element-filename('build_complexType',$complexType,$prefix,$namespace_uri_param))"/>-->
|
|
<!--<xsl:copy-of select="doc(system_cache__appinfo:element-filename('build_complexType',$complexType,$prefix,$namespace_uri_param))"/>-->
|
|
|
</xsl:when>
|
|
</xsl:when>
|
|
|
<xsl:otherwise>
|
|
<xsl:otherwise>
|
|
|
- <xsl:message>#2101B TODO save to <xsl:value-of select="system_cache__appinfo:element-filename.symlink('build_complexType__simpleType',@name,$prefix,$targetNamespace)"/></xsl:message>
|
|
|
|
|
|
|
+ <xsl:variable name="prefix">
|
|
|
|
|
+ <xsl:choose>
|
|
|
|
|
+ <xsl:when test="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 = $type_uri]/(complexType|simpleType)[@name = $name]) != 1" xpath-default-namespace="http://www.w3.org/2001/XMLSchema">
|
|
|
|
|
+ <!--<xsl:message terminate="no">251:a ERROR not found or too many elements with name:<xsl:value-of select="$type"/>; par.tNS:<xsl:value-of select="$targetNamespace"/>; on type_uri:<xsl:value-of select="$type_uri"/>; 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 = $type_uri]/(complexType|simpleType)[@name = system_cache__appinfo:clean_object_prefix($type)])"/></xsl:message>-->
|
|
|
|
|
+ <xsl:message>system_cache__appinfo:get_prefix_from_element(.) = <xsl:value-of select="system_cache__appinfo:get_prefix_from_element(.)"/></xsl:message>
|
|
|
|
|
+ <xsl:message>parent::node()/name = <xsl:value-of select="parent::node()/name()"/></xsl:message>
|
|
|
|
|
+ <xsl:message>parent::node()/@name = <xsl:value-of select="parent::node()/@name"/></xsl:message>
|
|
|
|
|
+ <xsl:message>parent::node()/@id = <xsl:value-of select="parent::node()/@id"/></xsl:message>
|
|
|
|
|
+ <xsl:message>debug found <xsl:copy-of 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 = $type_uri]/(complexType|simpleType)/concat(' jest: ',name(),'/',@name)"/></xsl:message>
|
|
|
|
|
+ <xsl:message terminate="yes">2101:a ERROR not found or too many elements with name:($name)=<xsl:value-of select="$name"/>; par.tNS:<xsl:value-of select="$targetNamespace"/>; on type_uri:<xsl:value-of select="$type_uri"/>; 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 = $type_uri]/(complexType|simpleType)[@name = system_cache__appinfo:clean_object_prefix($name)])"/></xsl:message>
|
|
|
|
|
+ </xsl:when>
|
|
|
|
|
+ <xsl:when test="$type_uri='http://www.w3.org/2001/XMLSchema'"><xsl:value-of select="'xs'"/></xsl:when>
|
|
|
|
|
+ <!-- @2017-11-2 blad na CRM_PROCESS ERROR fixing ! <xsl:otherwise><xsl:value-of 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=$type_uri]/namespace::node()[.=$type_uri]/name()" xpath-default-namespace="http://www.w3.org/2001/XMLSchema"/></xsl:otherwise>-->
|
|
|
|
|
+ <xsl:otherwise><xsl:value-of 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=$type_uri]/namespace::node()[.=$type_uri]/name()" xpath-default-namespace="http://www.w3.org/2001/XMLSchema"/></xsl:otherwise>
|
|
|
|
|
+ </xsl:choose>
|
|
|
|
|
+ </xsl:variable>
|
|
|
|
|
+ <xsl:message>#2101B TODO save to ($prefix="<xsl:value-of select="$prefix"/>") <xsl:value-of select="system_cache__appinfo:element-filename.symlink('build_complexType__simpleType',@name,$prefix,$targetNamespace)"/></xsl:message>
|
|
|
</xsl:otherwise>
|
|
</xsl:otherwise>
|
|
|
</xsl:choose>
|
|
</xsl:choose>
|
|
|
<xsl:comment>209: simpleType applied! system_cache__appinfo:root_element_in_schema:<xsl:value-of select="$system_cache__appinfo:root_element_in_schema"/>; if-prepare(<xsl:value-of select="$if-prepare"/>)</xsl:comment>
|
|
<xsl:comment>209: simpleType applied! system_cache__appinfo:root_element_in_schema:<xsl:value-of select="$system_cache__appinfo:root_element_in_schema"/>; if-prepare(<xsl:value-of select="$if-prepare"/>)</xsl:comment>
|
|
@@ -3316,7 +3333,7 @@
|
|
|
</xsl:variable>
|
|
</xsl:variable>
|
|
|
<xsl:if test="string-length($prefix) < 1"><xsl:message terminate="yes">#2616 error empty prefix for @id=<xsl:value-of select=".././@id"/> </xsl:message></xsl:if>
|
|
<xsl:if test="string-length($prefix) < 1"><xsl:message terminate="yes">#2616 error empty prefix for @id=<xsl:value-of select=".././@id"/> </xsl:message></xsl:if>
|
|
|
<xsl:if test="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=$type_uri]/namespace::node()[.=$type_uri]/name()) > 1">
|
|
<xsl:if test="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=$type_uri]/namespace::node()[.=$type_uri]/name()) > 1">
|
|
|
- <xsl:message terminate="no">#1517A ERROR - probably You have wrong schema .xsd files with twice set targetnamespace for $prefix:<xsl:value-of select="$prefix"/>; - it could be OK for importing external schemas for local default_db prefix ($type="<xsl:value-of select="$type"/>")</xsl:message>
|
|
|
|
|
|
|
+ <xsl:message terminate="no">#1517A ERROR - probably You have wrong schema .xsd files with twice set targetnamespace for $prefix:<xsl:value-of select="$prefix"/>; - it could be OK for importing external schemas for local default_db prefix ($type="<xsl:value-of select="$type"/>") ; (@targetNamespace=$type_uri="<xsl:value-of select="$type_uri"/>")</xsl:message>
|
|
|
</xsl:if>
|
|
</xsl:if>
|
|
|
<xsl:if test="substring-before($prefix,' ')">
|
|
<xsl:if test="substring-before($prefix,' ')">
|
|
|
<xsl:message terminate="yes">#1517B ERROR - probably You have wrong schema .xsd files with twice set targetnamespace for $prefix:<xsl:value-of select="$prefix"/>; $type_uri = <xsl:value-of select="$type_uri"/>; $targetNamespace = <xsl:value-of select="$targetNamespace"/>; @ref=<xsl:value-of select="."/>; @id= <xsl:value-of select="../@id"/>; ($type="<xsl:value-of select="$type"/>")</xsl:message>
|
|
<xsl:message terminate="yes">#1517B ERROR - probably You have wrong schema .xsd files with twice set targetnamespace for $prefix:<xsl:value-of select="$prefix"/>; $type_uri = <xsl:value-of select="$type_uri"/>; $targetNamespace = <xsl:value-of select="$targetNamespace"/>; @ref=<xsl:value-of select="."/>; @id= <xsl:value-of select="../@id"/>; ($type="<xsl:value-of select="$type"/>")</xsl:message>
|