[
http://issues.apache.org/jira/browse/XALANJ-2108?page=comments#action_12450281
]
Brian Minchau commented on XALANJ-2108:
---------------------------------------
Using the stylesheet and xml in the description, as xalanj-2108.xsl
and xalanj-2108.xml respectively and the Process command line with these args:
-XSLTC -IN xalanj-2108.xml -XSL xalanj-2108.xsl
The output was this:
(Location of error unknown)org/apache/regexp/RESyntaxException
(Location of error unknown)Could not compile stylesheet
(Location of error unknown)XSLT Error
(javax.xml.transform.TransformerConfigurationException): Could not compile
stylesheet
Exception in thread "main" java.lang.RuntimeException: Could not compile
stylesheet
at org.apache.xalan.xslt.Process.doExit(Process.java:1155)
at org.apache.xalan.xslt.Process.main(Process.java:1128)
The result was the same with or without patch2, so I don't see what the patch
fixes.
For these args (Xalan interpretive):
-IN xalanj-2108.xml -XSL xalanj-2108.xsl
the output was this:
<test><date>2004-01-01</date></test>
So I don't know what error XSLTC is hitting at this point, but I can't approve
the fix since I can't see
what it is fixing.
- Brian
The output was this:
> incorrect use of xsl:key cause NullPointerException
> ---------------------------------------------------
>
> Key: XALANJ-2108
> URL: http://issues.apache.org/jira/browse/XALANJ-2108
> Project: XalanJ2
> Issue Type: Bug
> Components: XSLTC
> Affects Versions: 2.6
> Environment: windows jdk 1.42.06
> Reporter: arnaud
> Assigned To: Santiago Pericas-Geertsen
> Priority: Minor
> Attachments: patch-2108-6401137.txt, patch-2108-patch2.txt
>
>
> my stylesheet
> -------------
> <?xml version="1.0"?>
> <xsl:stylesheet version="1.0"
> xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
> <xsl:output method = "html" encoding="iso-8859-1" />
>
> <xsl:variable name = "x" select = "'1'" />
> <xsl:variable name = "y" select = "'4'" />
> <xsl:key name = "key_test" match ="test" use = "substring(date, $x,
> $y)" />
>
> <xsl:template match="/">
> </xsl:template>
> </xsl:stylesheet>
> xml file
> <test><date>2004-01-01</date></test>
> java.lang.NullPointerException
> at
> java.lang.FloatingDecimal.readJavaFormatString(FloatingDecimal.java:980)
> at java.lang.Double.valueOf(Double.java:202)
> at
> org.apache.xalan.xsltc.runtime.BasisLibrary.stringToReal(BasisLibrary.java:838)
> at ent_recherche_simple.buildKeys()
> at ent_recherche_simple.transform()
> at
> org.apache.xalan.xsltc.runtime.AbstractTranslet.transform(AbstractTranslet.java:580)
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]