[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

After parsing an XSL file into a DOM with Xerces, Xala

Subject: After parsing an XSL file into a DOM with Xerces, Xalan-J errors out with: Exception: stylesheet requires attribute: version
From: "Curle, Bryan" <bryan.curle@xxxxxxx>
Date: Thu, 14 Jun 2001 14:02:17 -0400
xalan stylesheet requires attribute version
After parsing an XSL file into a DOM with Xerces(1.4), Xalan-J (2.1.1)
errors out with: javax.xml.transform.TransformerException: stylesheet
requires attribute: version.

At first, this appears to be the simple ommission of the version attribute
in the xsl:stylesheet, but I can guarantee that this element IS in fact in
the XSL.

When I simply read in the xsl from a file, Xalan works like a charm. It
appears that by first parsing the xsl into a DOM with Xerces, the parse does
something funny with it. I am completely stumped...I cannot avoid parsing
the xsl into a DOM, as I need to do some operations on it prior to the
tranformation. 

Any help or ideas would be greatly appreciated....someone must have tried
this before.

xsl
===
<?xml version="1.0"?> 
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="html"/>
<xsl:template match="/">
 ...
</xsl:template>
</xsl:stylesheet>

Thanks,
Bryan.


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.