You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by si mei <si...@yahoo.com> on 2000/12/14 22:41:39 UTC

Re: xml file to pdf file using Xalan

I am using that xsl namespace in my stylesheet.
 
When I did the transform at command line using command
java org.apache.fop.apps.XalanCommandLine xmlfile
xslfile pdffile, it works corretly.

It doesn't work only when I use 
process(xmlSource,
xslSource,XSLTResultTarget)function.

Thank you for your help!

--- "Thomas B. Passin" <tp...@mitretek.org> wrote:
> 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
> 
> 


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