Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

TransformerException: Extra illegal tokens: '#RowsetSchema', ':', 'row'

843834Oct 3 2002 — edited Oct 3 2002
Hi!

I'm getting a >>> javax.xml.transform.TransformerException: Extra illegal tokens: '#RowsetSchema', ':', 'row' <<< trying to get an XSLT trasformer for an XSL file using the xmlns:z="#RowsetSchema namespace.

File xsl = new File(XSLfile);
TransformerFactory tFactory = TransformerFactory.newInstance();
Transformer transformer = tFactory.newTransformer(new StreamSource(xsl));

I could see that the problem comes with the '#' character, because if I remove it everything works fine.

Unfortunately the matching XML is generated using (I guess) some Microsoft namespace definition to export data from ADO databases,

<xml xmlns:s="uuid:BDC6E3F0-6DA3-11d1-A2A3-00AA00C14882"
xmlns:dt="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882"
xmlns:rs="urn:schemas-microsoft-com:rowset"
xmlns:z="#RowsetSchema">

and the generation process is not under my control.

Is there a way to escape this '#' character check?

I tried to parse the same XML-XSL couple with Marrowsoft Xselerator transformer and it works fine, so what's the problem with Xalan? Can anybody give me a hint?

Thanks,

Enrico
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 31 2002
Added on Oct 3 2002
13 comments
1,638 views