Try this for your xsl:copy:

<xsl:copy><xsl:apply-templates select="@* | node()" /></xsl:copy>

<quote who="Andrew Chamberlain">
> Hi All,
>
> It's quite possible that this is more XSLT-related than Cocoon itself,
> but wasn't sure where else to post.
>
> I'm using an XSL transformer and need to capture a tree fragment in the
> value of variable ... including the tags themselves.  The reason for
> this is because I need to pass the XML excerpt (as a string) to a Java
> class which is specifically written to parse it.
>
> I'm trying the following, but this only seems to include the values, and
> not the tags:
>
>     <xsl:variable name="gml">
>       <xsl:copy-of select="."/>
>     </xsl:variable>
>
> Can anyone help?  Is there a trick for this?
>
> Many thanks,
>
> Andy
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>


/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/
Betty Harvey                         | Phone: 410-787-9200 FAX: 9830
Electronic Commerce Connection, Inc. |
[EMAIL PROTECTED]                    | Washington,DC SGML/XML Users Grp
URL:  http://www.eccnet.com          | http://www.eccnet.com/xmlug/
/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\\/\/
Help Mac fight MLD (http://www.macsteam.org)
Mark your calendar for October 28th (http://www.macsteam.org/BullROast.aspx)

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to