|
|
@@ -62,7 +62,7 @@
|
|
|
<xsl:param name="prefix"/>
|
|
|
<xsl:param name="name"/>
|
|
|
<xsl:choose>
|
|
|
- <xsl:when test="string-length($path)>3000">
|
|
|
+ <xsl:when test="string-length($path)>4000">
|
|
|
<xsl:message terminate="yes">42:complex_path_detect_loop: ERROR LOOP PATH LENGHT EXCEED:(<xsl:value-of select="string-length($path)"/>); $id:<xsl:value-of select="$id"/>; test:<xsl:value-of select="concat('/',$element,':',$prefix,':',$name,'/')"/>; path:<xsl:value-of select="$path"/>;</xsl:message>
|
|
|
<xsl:value-of select="'loop'"/></xsl:when><!-- zabezpiecznie LOOP extra TODO -->
|
|
|
<xsl:when test="$id">
|
|
|
@@ -1323,7 +1323,13 @@
|
|
|
</xsl:variable>
|
|
|
<xsl:if test="$restriction_base">
|
|
|
<xsl:if test="count($restriction_base//@id[../@system_cache__appinfo:restriction_path=$restriction_path and parent::node()/name()!='system_cache__appinfo:restriction_base'])!=1">
|
|
|
- <xsl:message terminate="yes">263:ERROR system_cache__appinfo:build_element cannot found/or too many: count:(<xsl:value-of select="count($restriction_base//@id[../@system_cache__appinfo:restriction_path=$restriction_path and parent::node()/name()!='system_cache__appinfo:restriction_base'])"/>;) restriction @base for @id:<xsl:value-of select="@id"/>; $xpath_local:<xsl:value-of select="$xpath_local"/>; for element. Case complexType restriction has max_occurs=0 and @base complexType has not such element at all. ? TODO is this real requirement $path:<xsl:value-of select="$path"/>;</xsl:message>
|
|
|
+ <xsl:message terminate="yes">263:ERROR system_cache__appinfo:build_element cannot found/or too many: count:(<xsl:value-of select="count($restriction_base//@id[../@system_cache__appinfo:restriction_path=$restriction_path and parent::node()/name()!='system_cache__appinfo:restriction_base'])"/>;) restriction @base for @id:<xsl:value-of select="@id"/>; $xpath_local:<xsl:value-of select="$xpath_local"/>; for element. Case complexType restriction has max_occurs=0 and @base complexType has not such element at all. ? TODO is this real requirement $path:<xsl:value-of select="$path"/>;
|
|
|
+ count($restriction_base//@id)="<xsl:value-of select="count($restriction_base//@id)"/>" ;
|
|
|
+ $restriction_path="<xsl:value-of select="$restriction_path"/>";
|
|
|
+ <xsl:for-each select="$restriction_base//*">
|
|
|
+ pos(<xsl:value-of select="position()"/>); name="<xsl:value-of select="name()"/>" <xsl:for-each select="@*"> @<xsl:value-of select="name()"/>="<xsl:value-of select="."/>"; </xsl:for-each>
|
|
|
+ </xsl:for-each>
|
|
|
+ </xsl:message>
|
|
|
<xsl:attribute name="system_cache__appinfo:ERROR263" select="concat('system_cache__appinfo:build_element cannot found/or too many: count:(',count($restriction_base//@id[../@system_cache__appinfo:restriction_path=$restriction_path and parent::node()/name()!='system_cache__appinfo:restriction_base']),';) restriction @base for @id:',@id,'; $xpath_local:',$xpath_local,'; $restriction_path:',$restriction_path,'; for element ? TODO is this real requirement')"/>
|
|
|
</xsl:if>
|
|
|
<!-- TODO error - there is possible that there is not @id - BAD SCHEMA - so previoulsy should be checked schema against if it has @id !!!! -->
|
|
|
@@ -2828,6 +2834,7 @@
|
|
|
<xsl:param name="xpath_local"/>
|
|
|
<xsl:param name="recurse" />
|
|
|
<xsl:variable name="debug_line" select="804"/>
|
|
|
+ <xsl:message>#2834 WARNING UNKNOWN ELEMENT name()=<xsl:value-of select="name()"/>; @name="<xsl:value-of select="@name"/>"; @id="<xsl:value-of select="@id"/>;"</xsl:message>
|
|
|
<xsl:if test="$debug_level>3"><xsl:message><xsl:value-of select="$debug_line"/>: complexContent applied! No-schema-element prefix:<xsl:value-of select="$prefix"/>; p.tNS:<xsl:value-of select="$targetNamespace"/>; path:<xsl:value-of select="$path"/>;</xsl:message>
|
|
|
<xsl:comment><xsl:value-of select="$debug_line"/>: complexContent applied! No-schema-element prefix:<xsl:value-of select="$prefix"/>; p.tNS:<xsl:value-of select="$targetNamespace"/>; path:<xsl:value-of select="$path"/>;</xsl:comment></xsl:if>
|
|
|
<xsl:element name="{name()}">
|
|
|
@@ -3189,7 +3196,7 @@
|
|
|
|
|
|
<!--<xsl:variable name="element-filename" select="system_cache__appinfo:escape_object_prefix_to_string(concat(system_cache__appinfo:prefix_from_targetNamespace($system_cache__appinfo:vrtfNamespaces,$type_uri),':',$complexType))"/>-->
|
|
|
<xsl:choose>
|
|
|
- <xsl:when test="(string-length($path) > 100 and $type_uri='http://docs.oasis-open.org/wsbpel/2.0/process/executable' ) or string-length($path) > 3000 ">
|
|
|
+ <xsl:when test="(string-length($path) > 100 and $type_uri='http://docs.oasis-open.org/wsbpel/2.0/process/executable' ) or string-length($path) > 2000 ">
|
|
|
<xsl:message terminate="no">#2863 TODO apply mode xp5r:cache </xsl:message>
|
|
|
<xp5r:cache xp5r:id="{generate-id(../.)}" xp5r:basedir="{$basedir}" xp5r:stylesheet="{$basedir}/default_db_xml_cache/build_complexType.xsl">
|
|
|
<xp5r:apply-template mode="system_cache__appinfo:build_flat_schema">
|