white space in mode attribute

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

white space in mode attribute

David Carlisle

testing 9.8 it seems that there is a missing white space normalisation
in the mode attribute.

<xsl:stylesheet version="3.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">


<xsl:template match="/">
<xsl:apply-templates mode="a"/>
</xsl:template>

<xsl:template match="z" mode="a b"/>

</xsl:stylesheet>


with two spaces (or a newline) between a and b produces

$ java -jar xsl/saxon9he.jar z.xsl z.xsl
Static error at xsl:template on line 9 column 39 of z.xsl:
XTSE0550: Invalid QName {}
Errors were reported during stylesheet compilation


If there is just one space it works as expected

$ java -jar xsl/saxon9he.jar z.xsl z.xsl
<?xml version="1.0" encoding="UTF-8"?>



David


Disclaimer

The Numerical Algorithms Group Ltd is a company registered in England and Wales with company number 1249803. The registered office is: Wilkinson House, Jordan Hill Road, Oxford OX2 8DR, United Kingdom.

This e-mail has been scanned for all viruses and malware, and may have been automatically archived by Mimecast Ltd, an innovator in Software as a Service (SaaS) for business.


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
saxon-help mailing list archived at http://saxon.markmail.org/
[hidden email]
https://lists.sourceforge.net/lists/listinfo/saxon-help 
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: white space in mode attribute

Michael Kay
Thanks, yes, known error:


Michael Kay
Saxonica


On 13 Jun 2017, at 14:48, David Carlisle <[hidden email]> wrote:


testing 9.8 it seems that there is a missing white space normalisation
in the mode attribute.

<xsl:stylesheet version="3.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">


<xsl:template match="/">
<xsl:apply-templates mode="a"/>
</xsl:template>

<xsl:template match="z" mode="a b"/>

</xsl:stylesheet>


with two spaces (or a newline) between a and b produces

$ java -jar xsl/saxon9he.jar z.xsl z.xsl
Static error at xsl:template on line 9 column 39 of z.xsl:
XTSE0550: Invalid QName {}
Errors were reported during stylesheet compilation


If there is just one space it works as expected

$ java -jar xsl/saxon9he.jar z.xsl z.xsl
<?xml version="1.0" encoding="UTF-8"?>



David


Disclaimer

The Numerical Algorithms Group Ltd is a company registered in England and Wales with company number 1249803. The registered office is: Wilkinson House, Jordan Hill Road, Oxford OX2 8DR, United Kingdom.

This e-mail has been scanned for all viruses and malware, and may have been automatically archived by Mimecast Ltd, an innovator in Software as a Service (SaaS) for business.

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot_______________________________________________
saxon-help mailing list archived at http://saxon.markmail.org/
[hidden email]
https://lists.sourceforge.net/lists/listinfo/saxon-help


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
saxon-help mailing list archived at http://saxon.markmail.org/
[hidden email]
https://lists.sourceforge.net/lists/listinfo/saxon-help 
Loading...