Subject: [xsl] 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 |
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
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] Abstract flow diagrams?, Ruggier, Mario | Thread | [xsl] Copy DocType, Kevin_Gutch |
[xsl] Abstract flow diagrams?, Ruggier, Mario | Date | Re: [xsl] Abstract flow diagrams?, Thomas B. Passin |
Month |