joins_asText_xml.xsl 935 B

123456789101112131415161718192021222324252627282930313233
  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:bp="https://procesy5.pl/biale_plamy-schema.xsd"
  5. exclude-result-prefixes="xs"
  6. version="2.0">
  7. <xsl:import href="asText.xsl"/>
  8. <xsl:output indent="yes"/>
  9. <xsl:strip-space elements="*"/>
  10. <xsl:template match="joins_asText">
  11. <joins_asText_xml>
  12. <xsl:apply-templates/>
  13. </joins_asText_xml>
  14. </xsl:template>
  15. <xsl:template match="item">
  16. <item>
  17. <xsl:copy-of select="@id"/>
  18. <xsl:variable name="asText">
  19. <asText>
  20. <xsl:value-of select="text()"/>
  21. </asText>
  22. </xsl:variable>
  23. <xsl:apply-templates mode="POINT" select="$asText"/>
  24. </item>
  25. </xsl:template>
  26. </xsl:stylesheet>