This is a FAQ. You're transforming to DOM and generating a text node before you've generating a root element.:
http://xml.apache.org/xalan-j/faq.html#faq-7 Please read the FAQs before posting questions. Dave Tobias McNulty <[EMAIL PROTECTED] To: [EMAIL PROTECTED] sk.com> cc: John Capehart <[EMAIL PROTECTED]>, (bcc: David N Bertoni/CAM/Lotus) Subject: Strange Hierarchy request error 12/26/2001 11:21 AM I have an XML file that looks like this: <?xml version="1.0" encoding="iso-8859-1"?> <root> <somenode>some value</somenode> </root> and an XSL stylesheet that looks like this: <?xml version="1.0" encoding="iso-8859-1"?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version ="1.0"> <xsl:output method="html" indent="yes"/> <xsl:template match="/"> <xsl:value-of select="//somenode"/> </xsl:template> </xsl:stylesheet> When I use Xalan to do a transformation, I get a DOMException that reads "DOM006 Hierarchy request error" in org.apache.xalan.TransformerImpl.transformNode(). Any idea what I might be missing here? Thanks, Toby -- Tobias McNulty Data Description, Inc. 840 Hanshaw Road, Suite 9 Ithaca, NY 14850 Phone: (607) 257-1000 E-mail: [EMAIL PROTECTED] Web: www.datadesk.com
