File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
XML and Related Technologies
XSLT Relative DTD Problem
Michael Daniel Jones
Joined: May 21, 2004
Jun 10, 2004 04:58:00
Hope you guys can help.
I am using XSLT to tranform a huge set of XML files the reflect the changes in a DTD due to the modification of the service that uses them.
Everything is set up but when I try to do the transform it cant find the DTD (because its a relative path for use inside the webapp). The code for the transformation looks like this.
factory = TransformerFactory.newInstance();
Transformer transformer = factory.newTransformer(xsltSource);
I have tried to create a URI resolver but it never seems to be called.
My question is really how do I set the base url when using a Transformer?
Or more likely, what am I doing wrong
Thanks in advance.
I agree. Here's the link:
subject: XSLT Relative DTD Problem
How to resolve conflict between XALAN and SUN trasformer
Getting error in XSL Transformation
How to use XSLT having struts tags in Struts
xsl tokenize issue
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015