XSLT strange behavior
Added by Anonymous over 14 years ago
Legacy ID: #8175630 Legacy Poster: Vincent Biragnet (vbiragnet)
Hello, I had some strange results using saxon, i try to reproduce them using a simple example. Here is my xslt : [code] <xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xs="http://www.w3.org/2001/XMLSchema" exclude-result-prefixes="xs"> <xsl:template name="test"> <xsl:variable name="serie" select="1 to 9"></xsl:variable> </xsl:template> </xsl:stylesheet> [/code] Here is the result : [code][/code] I think that the value for attr7 should be "7". For the preceding result, I ran saxon 9HE from command line using the option -it "test", my java environnement is jdk1.6.0.0_07 . I thank you in advance for your answer, Best regards, Vincent
Replies (2)
RE: XSLT strange behavior - Added by Anonymous over 14 years ago
Legacy ID: #8175706 Legacy Poster: Michael Kay (mhkay)
This is almost certainly a bug in the XML parser built in to JDK 1.6. This is an appallingly buggy parser, and one of the known bugs is that it reports corrupt attribute values. Please switch to the Xerces parser from Apache. You can achieve this simply by installing the relevant JAR files in the lib/endorsed directory in your Java directory structure.
RE: XSLT strange behavior - Added by Anonymous over 14 years ago
Legacy ID: #8175872 Legacy Poster: Vincent Biragnet (vbiragnet)
Thanks, it works now perfectly well !
Please register to reply