File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes XML and Related Technologies and the fly likes Does PURE XSL matter, in XSLTProcessing? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "Does PURE XSL matter, in XSLTProcessing?" Watch "Does PURE XSL matter, in XSLTProcessing?" New topic

Does PURE XSL matter, in XSLTProcessing?

ak amanushya

Joined: Aug 20, 2001
Posts: 7
I am using JAXP1.1, XALAN2.2, JRun3.1
In the process of transforming the xml file using the xsl file, I am getting TransformerException SAXException. Does someone know, is this caused because the xsl file contains the html tags inbetween, rather than pure XSL code?
Your thoughts are welcome.
Mapraputa Is
Leverager of our synergies

Joined: Aug 26, 2000
Posts: 10065
It is perfectly legal for XSL document to contain HTML tags, as long as they are well-formed XML. If these tags were "cut and paste" from some HTML file, they may not be a well-formed XML.

Uncontrolled vocabularies
"I try my best to make *all* my posts nice, even when I feel upset" -- Philippe Maquet
L Goundalkar
Ranch Hand

Joined: Jul 05, 2001
Posts: 395
SAX exception is due to the problem while "PARSING" the XML file. So it is not at all connected to XSL containing HTML tags.
You must have erred in your SAX code or your XML file is not according to the specification.
L Goundalkar
Sun Certified Programmer for Java 2 Platform
[This message has been edited by L Goundalkar (edited August 23, 2001).]

Ajith Kallambella

Joined: Mar 17, 2000
Posts: 5782
What is the exception anyway? Can you post the error stack here?

Open Group Certified Distinguished IT Architect. Open Group Certified Master IT Architect. Sun Certified Architect (SCEA).
ak amanushya

Joined: Aug 20, 2001
Posts: 7
I will let you know one thing...if u promise not to curse me.. well, it was the problem with the path of the file and on the assumption that it was correct, i was doubting all other possibilities...anyway, on reading this, someone will spare a thought to check the path of the file referred..thanx guys...for posting ur comments..
I agree. Here's the link:
subject: Does PURE XSL matter, in XSLTProcessing?
It's not a secret anymore!