File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "Does PURE XSL matter, in XSLTProcessing?" Watch "Does PURE XSL matter, in XSLTProcessing?" New topic
Author

Does PURE XSL matter, in XSLTProcessing?

ak amanushya
Greenhorn

Joined: Aug 20, 2001
Posts: 7
Hello,
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.
Thanks
AK
Mapraputa Is
Leverager of our synergies
Sheriff

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
Hi,
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.
Thanks.
------------------
L Goundalkar
lggoundalkar@hotmail.com
Sun Certified Programmer for Java 2 Platform
[This message has been edited by L Goundalkar (edited August 23, 2001).]


SCJP, SCWCD
Ajith Kallambella
Sheriff

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
Greenhorn

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..
ak
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Does PURE XSL matter, in XSLTProcessing?