Description of problem: com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl fails to parse (apparently) valid xslt Version-Release number of selected component (if applicable): java-1.6.0-openjdk-1.6.0.0-34.b17.fc13 How reproducible: 100% Steps to Reproduce: 1. javac demo.java 2. java demo.java demo.xsl Actual results: TransformerFactory is 'com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl' XSL is'/tmp/filter/example.xsl' ERROR: 'file:/tmp/filter/example.xsl: line 4: Cannot parse attribute value template '{translate(@name,'{}','_')}'.' FATAL ERROR: 'Could not compile stylesheet' javax.xml.transform.TransformerConfigurationException: Could not compile stylesheet at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl.newTemplates(TransformerFactoryImpl.java:829) at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl.newTransformer(TransformerFactoryImpl.java:618) at demo.main(demo.java:12) Expected results: TransformerFactory is 'com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl' XSL is'/tmp/filter/example.xsl' Additional info: Overridding the built-in xslt implementation, e.g. export CLASSPATH=/usr/share/java/xalan-j2.jar:. and all is well java demo /tmp/filter/example.xsl TransformerFactory is 'org.apache.xalan.processor.TransformerFactoryImpl' XSL is'/tmp/filter/example.xsl' The problem is with the appearance of braces {} inside the translate string.
Created attachment 400186 [details] demo java
Created attachment 400188 [details] demo.xsl
Thanks for the report, and the simple reproducer. I did notice that it is really only the opening curly brace that causes this. The problem is within classes that come from the JAXP drop. I've filed a bug upstream. https://jaxp.dev.java.net/issues/show_bug.cgi?id=64 In the meantime, I'd recommend to keep the xalan-j2 jar on your classpath as workaround.
*** Bug 573606 has been marked as a duplicate of this bug. ***
This bug appears to have been reported against 'rawhide' during the Fedora 14 development cycle. Changing version to '14'. More information and reason for this action is here: http://fedoraproject.org/wiki/BugZappers/HouseKeeping
This message is a notice that Fedora 14 is now at end of life. Fedora has stopped maintaining and issuing updates for Fedora 14. It is Fedora's policy to close all bug reports from releases that are no longer maintained. At this time, all open bugs with a Fedora 'version' of '14' have been closed as WONTFIX. (Please note: Our normal process is to give advanced warning of this occurring, but we forgot to do that. A thousand apologies.) Package Maintainer: If you wish for this bug to remain open because you plan to fix it in a currently maintained version, feel free to reopen this bug and simply change the 'version' to a later Fedora version. Bug Reporter: Thank you for reporting this issue and we are sorry that we were unable to fix it before Fedora 14 reached end of life. If you would still like to see this bug fixed and are able to reproduce it against a later version of Fedora, you are encouraged to click on "Clone This Bug" (top right of this page) and open it against that version of Fedora. Although we aim to fix as many bugs as possible during every release's lifetime, sometimes those efforts are overtaken by events. Often a more recent Fedora release includes newer upstream software that fixes bugs or makes them obsolete. The process we are following is described here: http://fedoraproject.org/wiki/BugZappers/HouseKeeping