[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
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! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|