Bug 573619 - com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl attribute parse failure
Summary: com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl attribute...
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Fedora
Classification: Fedora
Component: java-1.6.0-openjdk
Version: 14
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
Assignee: Jon VanAlten
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
: 573606 (view as bug list)
Depends On:
Blocks: 573239
TreeView+ depends on / blocked
 
Reported: 2010-03-15 11:34 UTC by Caolan McNamara
Modified: 2012-08-16 18:32 UTC (History)
5 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2012-08-16 18:32:34 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
demo java (623 bytes, text/plain)
2010-03-15 11:35 UTC, Caolan McNamara
no flags Details
demo.xsl (295 bytes, text/plain)
2010-03-15 11:40 UTC, Caolan McNamara
no flags Details

Description Caolan McNamara 2010-03-15 11:34:44 UTC
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.

Comment 1 Caolan McNamara 2010-03-15 11:35:24 UTC
Created attachment 400186 [details]
demo java

Comment 2 Caolan McNamara 2010-03-15 11:40:59 UTC
Created attachment 400188 [details]
demo.xsl

Comment 3 Jon VanAlten 2010-03-25 21:14:15 UTC
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.

Comment 4 Caolan McNamara 2010-04-08 09:55:40 UTC
*** Bug 573606 has been marked as a duplicate of this bug. ***

Comment 5 Bug Zapper 2010-07-30 11:04:37 UTC
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

Comment 6 Fedora End Of Life 2012-08-16 18:32:37 UTC
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


Note You need to log in before you can comment on or make changes to this bug.