xsl-list
[Top] [All Lists]

RE: Select entire XML doc

2003-03-02 22:44:28

Hello,
You should copy all the XML to the <TextArea>
Following template should answer your query..

        <xsl:template match="/">
                <textarea rows="10" cols="30">
                <xsl:copy-of select="*"> </xsl:copy-of>
                </textarea>
        </xsl:template>

Thanks,
Dhiraj

-----Original Message-----
From: owner-xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
[mailto:owner-xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com]On Behalf Of Karl
Stubsjoen
Sent: Thursday, February 27, 2003 9:00 PM
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: [xsl] Select entire XML doc


Hello,

How do I select the entire XML document?  I need to write this out in a text
area.  This didn't work:

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

Thanks for the help : )

Karl


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list



<Prev in Thread] Current Thread [Next in Thread>