|
|
@@ -1,10 +1,12 @@
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
|
|
xmlns:xs="http://www.w3.org/2001/XMLSchema"
|
|
|
- xmlns:gml="http://www.opengis.net/gml" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
|
+ xmlns:gml="http://www.opengis.net/gml"
|
|
|
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
|
xmlns:xlink="http://www.w3.org/1999/xlink"
|
|
|
xmlns:p5_default_db="https://biuro.biall-net.pl/wfs/default_db"
|
|
|
xmlns:wfs="http://www.opengis.net/wfs"
|
|
|
+ xmlns:ogc="http://www.opengis.net/ogc"
|
|
|
exclude-result-prefixes="xs"
|
|
|
version="2.0">
|
|
|
<xsl:output indent="yes" />
|
|
|
@@ -208,8 +210,13 @@
|
|
|
<xsl:choose>
|
|
|
<xsl:when test="string($xpath_dita)= string($xpath) and string($featureID_name)=string($featureID_name_dita)">
|
|
|
<!-- calculate query to api default_db/?SERVICE=WFS&VERSION=1.0.0&REQUEST=GetFeature&TYPENAME=p5_default_db:IN7_DZIENNIK_KORESP&SRSNAME=EPSG:3003&featureID=IN7_DZIENNIK_KORESP.1000'-->
|
|
|
+ <!--<property name="OGC_Filter">%26lt;ogc:Filter%26gt;%26lt;ogc:PropertyIsNull%26gt;%26lt;ogc:PropertyName%26gt;the_geom%26lt;/ogc:PropertyName%26gt;%26lt;/ogc:PropertyIsNull%26gt;%26lt;/ogc:Filter%26gt;</property>-->
|
|
|
+
|
|
|
+ <xsl:variable name="OGC_Filter">&Filter=<ogc:Filter><ogc:PropertyIsEqualTo><ogc:PropertyName><xsl:value-of select="$xpath_dita"/></ogc:PropertyName><ogc:Literal><xsl:value-of select="$xpath_value_dita"/></ogc:Literal></ogc:PropertyIsEqualTo></ogc:Filter></xsl:variable>
|
|
|
+
|
|
|
<xsl:variable name="url">
|
|
|
- <xsl:value-of select="$api_url"/>/default_db/?SERVICE=WFS&VERSION=1.0.0&REQUEST=GetFeature&TYPENAME=<xsl:value-of select="$typeName_dita"/>&SRSNAME=EPSG:3003&featureID=<xsl:value-of select="$featureID_name_dita"/>.<xsl:value-of select="$xpath_value_dita"/>
|
|
|
+ <!--<xsl:value-of select="$api_url"/>/default_db/?SERVICE=WFS&VERSION=1.0.0&REQUEST=GetFeature&TYPENAME=<xsl:value-of select="$typeName_dita"/>&SRSNAME=EPSG:3003&featureID=<xsl:value-of select="$featureID_name_dita"/>.<xsl:value-of select="$xpath_value_dita"/>-->
|
|
|
+ <xsl:value-of select="$api_url"/>/default_db/?SERVICE=WFS&VERSION=1.0.0&REQUEST=GetFeature&TYPENAME=<xsl:value-of select="$typeName_dita"/>&SRSNAME=EPSG:3003<xsl:value-of select="$OGC_Filter"/>
|
|
|
</xsl:variable>
|
|
|
|
|
|
<xsl:element name="target">
|