cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrew Chamberlain <an...@comsine.co.uk>
Subject Tags in the value of an XSLT variable?
Date Fri, 27 Jun 2008 16:47:58 GMT
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: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message