get_wfs.propertyName.xsl 1.1 KB

1234567891011121314151617181920212223242526272829
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  3. xmlns:xs="http://www.w3.org/2001/XMLSchema"
  4. xmlns:get_wfs="http://biuro.biall-net.pl/WPS_Functions/get_wfs/get_wfs.xsd"
  5. exclude-result-prefixes="xs"
  6. version="2.0">
  7. <xsl:output omit-xml-declaration="yes"/>
  8. <xsl:param name="propertyName" required="yes"/>
  9. <xsl:param name="set.propertyName" required="yes"/>
  10. <xsl:template match="*|text()|comment()">
  11. <xsl:apply-templates/>
  12. </xsl:template>
  13. <xsl:template match="*[local-name()=$propertyName]">
  14. <xsl:text>#Ant properties
  15. </xsl:text>
  16. <xsl:value-of select="$set.propertyName"/><xsl:text>=</xsl:text><xsl:value-of select="text()"/>
  17. <xsl:choose>
  18. <xsl:when test=" count(following-sibling::*) &gt; 1">
  19. <xsl:message terminate="yes">#25 ERROR too many rows - set propertyname could have only one feature - modify to restrict filter</xsl:message>
  20. </xsl:when>
  21. </xsl:choose>
  22. </xsl:template>
  23. </xsl:stylesheet>