You are viewing a plain text version of this content. The canonical link for it is here.
Posted to general@xml.apache.org by si mei <si...@yahoo.com> on 2000/12/13 17:29:53 UTC

xml file to pdf file using Xalan

Hi,

I am using Xalan's 
process(xmlSource, xslSource,
XSLTResultTarget)function to transform xml file to pdf
file, but the file generated is not a pdf file, it is
a xsl file that i used for transform.

I used the same function to transform xml file to text
file, and it works fine.

How can I fix the problem?

Thank you for your help.

__________________________________________________
Do You Yahoo!?
Yahoo! Shopping - Thousands of Stores. Millions of Products.
http://shopping.yahoo.com/

Re: xml file to pdf file using Xalan

Posted by "Thomas B. Passin" <tp...@mitretek.org>.
si mei asked -

> I am using Xalan's
> process(xmlSource, xslSource,
> XSLTResultTarget)function to transform xml file to pdf
> file, but the file generated is not a pdf file, it is
> a xsl file that i used for transform.
>
> I used the same function to transform xml file to text
> file, and it works fine.
>
> How can I fix the problem?
>
Usually this happens when the xsl namespace in the stylesheet is not
declared to have the correct value.  This is not unique to Xalan, it
happens with any xslt processor.

The correct value to use is

xmlns:xsl="http://www.w3.org/1999/XSL/Transform"

Tom Passin