Does the XML file have to contains XSL instructions?

"Ben Stover" <[email protected]>
Newsgroups gmane.text.xml.xalan.java.user
Message-ID <[email protected]>
When I apply a simple XSL stylesheet on a simple XML file then Xalan v2.7.1 complains about missing xsl-stylesheet instructions in the XML file.

I used a command like the following:

java org.apache.xalan.xslt.Process -in some.xml -xsl convert.xslt

...and got:

Exception in thread "main" java.lang.RuntimeException: No processing instruction found for xml-stylesheet in some.xml.
        at org.apache.xalan.xslt.Process.doExit(Process.java:1155)
        at org.apache.xalan.xslt.Process.main(Process.java:1128)

Why?

I am using java v1.5 under WinXP. 

Ben
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.