|
@@ -25,6 +25,22 @@
|
|
|
<xsl:output indent="yes" />
|
|
<xsl:output indent="yes" />
|
|
|
<xsl:strip-space elements="*"/>
|
|
<xsl:strip-space elements="*"/>
|
|
|
|
|
|
|
|
|
|
+ <xsl:function name="system_cache__resources_tree_generate_xsl_required_occurs_raport:GetsimpleSchema">
|
|
|
|
|
+ <xsl:param name="typeNameRealResource"/>
|
|
|
|
|
+ <xsl:variable name="featureID_name_dita" select="substring-after($typeNameRealResource,':')"/>
|
|
|
|
|
+ <xsl:choose>
|
|
|
|
|
+ <xsl:when test=" doc-available(concat($simpleSchema_dir,'/',$targetNamespace_DEFAULTS_prefix,'/',$featureID_name_dita,'.xml'))">
|
|
|
|
|
+ <xsl:variable name="simpleSchemaFile" select="concat($simpleSchema_dir,'/',$targetNamespace_DEFAULTS_prefix,'/',$featureID_name_dita,'.xml')"/>
|
|
|
|
|
+ <xsl:message>get_wfs_recurse_xsl:GetsimpleSchema: <xsl:value-of select="$simpleSchemaFile"/></xsl:message>
|
|
|
|
|
+ <xsl:copy-of select="doc($simpleSchemaFile)"/>
|
|
|
|
|
+ </xsl:when>
|
|
|
|
|
+ <xsl:otherwise>
|
|
|
|
|
+ <xsl:message>#38 ERROR with not generated file should be - maybe do again build.xml? missing file: <xsl:value-of select="concat($simpleSchema_dir,'/',$targetNamespace_DEFAULTS_prefix,'/',$featureID_name_dita,'.xml')"/></xsl:message>
|
|
|
|
|
+ </xsl:otherwise>
|
|
|
|
|
+ </xsl:choose>
|
|
|
|
|
+
|
|
|
|
|
+ </xsl:function>
|
|
|
|
|
+
|
|
|
<xsl:function name="p5_tr_map:force_local_typeName">
|
|
<xsl:function name="p5_tr_map:force_local_typeName">
|
|
|
<xsl:param name="typeName"/>
|
|
<xsl:param name="typeName"/>
|
|
|
<xsl:choose>
|
|
<xsl:choose>
|
|
@@ -209,7 +225,7 @@
|
|
|
<xsl:copy-of select="$detect_resource_type"/>
|
|
<xsl:copy-of select="$detect_resource_type"/>
|
|
|
</prefixed_object_info>-->
|
|
</prefixed_object_info>-->
|
|
|
<!--<debug208>
|
|
<!--<debug208>
|
|
|
- <xsl:copy-of select="$detect_resource_type"/>
|
|
|
|
|
|
|
+ <xsl:copy-of select="$build_complexType"/>
|
|
|
</debug208>-->
|
|
</debug208>-->
|
|
|
|
|
|
|
|
|
|
|
|
@@ -279,6 +295,7 @@
|
|
|
<!--<prefixed_object_info>
|
|
<!--<prefixed_object_info>
|
|
|
<xsl:copy-of select="$detect_resource_type"/>
|
|
<xsl:copy-of select="$detect_resource_type"/>
|
|
|
</prefixed_object_info>-->
|
|
</prefixed_object_info>-->
|
|
|
|
|
+ <xsl:comment>@298 p5_tr_map:simpleTypeMakeOgcFilter</xsl:comment>
|
|
|
<xsl:call-template name="p5_tr_map:simpleTypeMakeOgcFilter">
|
|
<xsl:call-template name="p5_tr_map:simpleTypeMakeOgcFilter">
|
|
|
<xsl:with-param name="build_complexType" select="$build_complexType"/>
|
|
<xsl:with-param name="build_complexType" select="$build_complexType"/>
|
|
|
</xsl:call-template>
|
|
</xsl:call-template>
|
|
@@ -457,18 +474,41 @@
|
|
|
<xsl:variable name="simpleTypeMakeOgcFilter">
|
|
<xsl:variable name="simpleTypeMakeOgcFilter">
|
|
|
<xsl:apply-templates mode="p5_tr_map:simpleTypeMakeOgcFilter" select="$build_complexType/element" xpath-default-namespace="http://www.w3.org/2001/XMLSchema"/>
|
|
<xsl:apply-templates mode="p5_tr_map:simpleTypeMakeOgcFilter" select="$build_complexType/element" xpath-default-namespace="http://www.w3.org/2001/XMLSchema"/>
|
|
|
</xsl:variable>
|
|
</xsl:variable>
|
|
|
|
|
+ <!--<debug.476>
|
|
|
|
|
+ <xsl:copy-of select="$build_complexType/element" xpath-default-namespace="http://www.w3.org/2001/XMLSchema"/>
|
|
|
|
|
+ </debug.476>-->
|
|
|
<xsl:if test="$simpleTypeMakeOgcFilter/*"><!-- display element only if exists filter -->
|
|
<xsl:if test="$simpleTypeMakeOgcFilter/*"><!-- display element only if exists filter -->
|
|
|
<simpleTypeMakeOgcFilter>
|
|
<simpleTypeMakeOgcFilter>
|
|
|
<xsl:attribute name="name" select="$build_complexType/element/@name" xpath-default-namespace="http://www.w3.org/2001/XMLSchema"/>
|
|
<xsl:attribute name="name" select="$build_complexType/element/@name" xpath-default-namespace="http://www.w3.org/2001/XMLSchema"/>
|
|
|
|
|
+ <!--<xsl:attribute name="debug.479" select="true()"/>-->
|
|
|
<xsl:copy-of select="$simpleTypeMakeOgcFilter"/>
|
|
<xsl:copy-of select="$simpleTypeMakeOgcFilter"/>
|
|
|
</simpleTypeMakeOgcFilter>
|
|
</simpleTypeMakeOgcFilter>
|
|
|
</xsl:if>
|
|
</xsl:if>
|
|
|
|
|
|
|
|
</xsl:template>
|
|
</xsl:template>
|
|
|
|
|
|
|
|
- <xsl:template mode="p5_tr_map:simpleTypeMakeOgcFilter" match="sequence|complexType" xpath-default-namespace="http://www.w3.org/2001/XMLSchema">
|
|
|
|
|
|
|
+ <xsl:template mode="p5_tr_map:simpleTypeMakeOgcFilter" match="sequence" xpath-default-namespace="http://www.w3.org/2001/XMLSchema">
|
|
|
|
|
+ <!--<xsl:element name="{name()}">-->
|
|
|
|
|
+ <xsl:variable name="p5_tr_map:simpleTypeMakeOgcFilter"><!-- to test only -->
|
|
|
|
|
+ <xsl:apply-templates mode="p5_tr_map:simpleTypeMakeOgcFilter"/>
|
|
|
|
|
+ </xsl:variable>
|
|
|
|
|
+ <xsl:choose>
|
|
|
|
|
+ <xsl:when test="count($p5_tr_map:simpleTypeMakeOgcFilter/*) > 1">
|
|
|
|
|
+ <ogc:And>
|
|
|
|
|
+ <xsl:copy-of select="$p5_tr_map:simpleTypeMakeOgcFilter"/>
|
|
|
|
|
+ </ogc:And>
|
|
|
|
|
+ </xsl:when>
|
|
|
|
|
+ <xsl:otherwise>
|
|
|
|
|
+ <xsl:copy-of select="$p5_tr_map:simpleTypeMakeOgcFilter"/>
|
|
|
|
|
+ </xsl:otherwise>
|
|
|
|
|
+ </xsl:choose>
|
|
|
|
|
+ <!--<xsl:apply-templates mode="p5_tr_map:simpleTypeMakeOgcFilter"/>-->
|
|
|
|
|
+ <!--</xsl:element>-->
|
|
|
|
|
+ </xsl:template>
|
|
|
|
|
+
|
|
|
|
|
+ <xsl:template mode="p5_tr_map:simpleTypeMakeOgcFilter" match="complexType" xpath-default-namespace="http://www.w3.org/2001/XMLSchema">
|
|
|
<!--<xsl:element name="{name()}">-->
|
|
<!--<xsl:element name="{name()}">-->
|
|
|
- <xsl:apply-templates mode="p5_tr_map:simpleTypeMakeOgcFilter"/>
|
|
|
|
|
|
|
+ <xsl:apply-templates mode="p5_tr_map:simpleTypeMakeOgcFilter"/>
|
|
|
<!--</xsl:element>-->
|
|
<!--</xsl:element>-->
|
|
|
</xsl:template>
|
|
</xsl:template>
|
|
|
|
|
|
|
@@ -494,9 +534,23 @@
|
|
|
|
|
|
|
|
<xsl:template mode="p5_tr_map:simpleTypeMakeOgcFilter" match="restriction[@base]" xpath-default-namespace="http://www.w3.org/2001/XMLSchema">
|
|
<xsl:template mode="p5_tr_map:simpleTypeMakeOgcFilter" match="restriction[@base]" xpath-default-namespace="http://www.w3.org/2001/XMLSchema">
|
|
|
<xsl:param name="name" required="yes"/>
|
|
<xsl:param name="name" required="yes"/>
|
|
|
- <xsl:apply-templates mode="p5_tr_map:simpleTypeMakeOgcFilter_restriction">
|
|
|
|
|
- <xsl:with-param name="name" select="$name"/>
|
|
|
|
|
- </xsl:apply-templates>
|
|
|
|
|
|
|
+ <xsl:variable name="p5_tr_map:simpleTypeMakeOgcFilter_restriction">
|
|
|
|
|
+ <xsl:apply-templates mode="p5_tr_map:simpleTypeMakeOgcFilter_restriction">
|
|
|
|
|
+ <xsl:with-param name="name" select="$name"/>
|
|
|
|
|
+ </xsl:apply-templates>
|
|
|
|
|
+ </xsl:variable>
|
|
|
|
|
+ <xsl:choose>
|
|
|
|
|
+ <xsl:when test="count($p5_tr_map:simpleTypeMakeOgcFilter_restriction/*) > 1">
|
|
|
|
|
+ <xsl:for-each select="$p5_tr_map:simpleTypeMakeOgcFilter_restriction">
|
|
|
|
|
+ <ogc:Or>
|
|
|
|
|
+ <xsl:copy-of select="*"/>
|
|
|
|
|
+ </ogc:Or>
|
|
|
|
|
+ </xsl:for-each>
|
|
|
|
|
+ </xsl:when>
|
|
|
|
|
+ <xsl:otherwise>
|
|
|
|
|
+ <xsl:copy-of select="$p5_tr_map:simpleTypeMakeOgcFilter_restriction"/>
|
|
|
|
|
+ </xsl:otherwise>
|
|
|
|
|
+ </xsl:choose>
|
|
|
</xsl:template>
|
|
</xsl:template>
|
|
|
|
|
|
|
|
|
|
|
|
@@ -504,23 +558,23 @@
|
|
|
<xsl:template mode="p5_tr_map:simpleTypeMakeOgcFilter_restriction" match="enumeration" xpath-default-namespace="http://www.w3.org/2001/XMLSchema">
|
|
<xsl:template mode="p5_tr_map:simpleTypeMakeOgcFilter_restriction" match="enumeration" xpath-default-namespace="http://www.w3.org/2001/XMLSchema">
|
|
|
<xsl:param name="name" required="yes"/>
|
|
<xsl:param name="name" required="yes"/>
|
|
|
<!--c:Filter><ogc:And><ogc:PropertyIsEqualTo><ogc:Propert -->
|
|
<!--c:Filter><ogc:And><ogc:PropertyIsEqualTo><ogc:Propert -->
|
|
|
- <ogc:Or>
|
|
|
|
|
|
|
+ <!--<ogc:Or>-->
|
|
|
<ogc:PropertyIsEqualTo>
|
|
<ogc:PropertyIsEqualTo>
|
|
|
<ogc:PropertyName><xsl:value-of select="$name"/></ogc:PropertyName>
|
|
<ogc:PropertyName><xsl:value-of select="$name"/></ogc:PropertyName>
|
|
|
<ogc:Literal><xsl:value-of select="@value"/></ogc:Literal>
|
|
<ogc:Literal><xsl:value-of select="@value"/></ogc:Literal>
|
|
|
</ogc:PropertyIsEqualTo>
|
|
</ogc:PropertyIsEqualTo>
|
|
|
- </ogc:Or>
|
|
|
|
|
|
|
+ <!--</ogc:Or>-->
|
|
|
</xsl:template>
|
|
</xsl:template>
|
|
|
|
|
|
|
|
<xsl:template mode="p5_tr_map:simpleTypeMakeOgcFilter_restriction" match="minInclusive" xpath-default-namespace="http://www.w3.org/2001/XMLSchema">
|
|
<xsl:template mode="p5_tr_map:simpleTypeMakeOgcFilter_restriction" match="minInclusive" xpath-default-namespace="http://www.w3.org/2001/XMLSchema">
|
|
|
<xsl:param name="name" required="yes"/>
|
|
<xsl:param name="name" required="yes"/>
|
|
|
<!--c:Filter><ogc:And><ogc:PropertyIsEqualTo><ogc:Propert -->
|
|
<!--c:Filter><ogc:And><ogc:PropertyIsEqualTo><ogc:Propert -->
|
|
|
- <ogc:Or>
|
|
|
|
|
|
|
+ <!--<ogc:Or>-->
|
|
|
<ogc:PropertyIsGreaterThanOrEqualTo>
|
|
<ogc:PropertyIsGreaterThanOrEqualTo>
|
|
|
<ogc:PropertyName><xsl:value-of select="$name"/></ogc:PropertyName>
|
|
<ogc:PropertyName><xsl:value-of select="$name"/></ogc:PropertyName>
|
|
|
<ogc:Literal><xsl:value-of select="@value"/></ogc:Literal>
|
|
<ogc:Literal><xsl:value-of select="@value"/></ogc:Literal>
|
|
|
</ogc:PropertyIsGreaterThanOrEqualTo>
|
|
</ogc:PropertyIsGreaterThanOrEqualTo>
|
|
|
- </ogc:Or>
|
|
|
|
|
|
|
+ <!--</ogc:Or>-->
|
|
|
</xsl:template>
|
|
</xsl:template>
|
|
|
|
|
|
|
|
|
|
|