Project

Profile

Help

Bug #4110 ยป whitespace_plus_char.xsl

Stylesheet generating the erroneous output - Sebastian Bulka, 2019-01-24 17:43

 
<?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"
exclude-result-prefixes="xs"
version="3.0">
<xsl:template name="init">
<xsl:variable name="s1" select="' z'"/>
<xsl:variable name="s2" select="' z'" as="xs:string"/>
<xsl:variable name="s3">
<xsl:value-of select="' z'"/>
</xsl:variable>
<xsl:processing-instruction name="s1" select="$s1"/>
<xsl:processing-instruction name="s2" select="$s2"/>
<xsl:processing-instruction name="s3" select="$s3"/>
<xsl:element name="w"><xsl:value-of select="$s2"/></xsl:element>
</xsl:template>
</xsl:stylesheet>
    (1-1/1)