You stylesheet must create a root element before you can add text nodes.
As I stated in my previous email, this template:

   <xsl:template match="/">
       <xsl:value-of select="//somenode"/>
   </xsl:template>

creates a text node, but no root element.  Try this to see if your error
goes away:

   <xsl:template match="/">
     <root>
       <xsl:value-of select="//somenode"/>
     </root>
   </xsl:template>

Dave



                                                                                
                                                      
                      Tobias McNulty                                            
                                                      
                      <[EMAIL PROTECTED]         To:      David N 
Bertoni/CAM/[EMAIL PROTECTED]                                               
                      sk.com>                  cc:                              
                                                      
                                               Subject: Re: Strange Hierarchy 
request error                                           
                      12/26/2001 12:23                                          
                                                      
                      PM                                                        
                                                      
                                                                                
                                                      
                                                                                
                                                      




>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

Dave, I have read this.  I am already using the
DocumentBuilder.newDocument() function to create my [assumably empty]
documents.

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



Reply via email to