[PATCH] Fix placement of xsl:output in XSL file

Andrew John Hughes gnu_andrew at member.fsf.org
Mon May 26 17:01:39 PDT 2008


The file src/share/vm/interpreter/bytecodeInterpreterWithChecks.xsl
places the xsl:output tag within the xsl:template element.  This
causes compiling the XSL file to fail with xsltproc from libxml2 and
generates an erroneous file (it includes an <?xml> tag) when building
with the JDK with the Apache XML libraries (as is done for
bootstrapping in IcedTea).

The appropriate part of the XSLT specification:

http://www.w3.org/TR/xslt#output

states that 'The xsl:output element is only allowed as a top-level element.'

The attached patch moves the output tag to the correct place and
allowed me to correctly build HotSpot again.

Is this okay for inclusion?

Thanks,
-- 
Andrew :-)

Support Free Java!
Contribute to GNU Classpath and the OpenJDK
http://www.gnu.org/software/classpath
http://openjdk.java.net

PGP Key: 94EFD9D8 (http://subkeys.pgp.net)
Fingerprint: F8EF F1EA 401E 2E60 15FA  7927 142C 2591 94EF D9D8
-------------- next part --------------
A non-text attachment was scrubbed...
Name: xslfix.diff
Type: text/x-patch
Size: 626 bytes
Desc: not available
Url : http://mail.openjdk.java.net/pipermail/hotspot-dev/attachments/20080527/68435cb7/attachment.bin 


More information about the hotspot-dev mailing list