xsl-list
[Top] [All Lists]

inserting XML from the nodeset

2005-10-30 12:29:24
Hi,

I would like to embed XML from nodeset as it is into a
transformation how can I do this?

For example if I have:
<?xml version="1.0" encoding="UTF-8" ?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform";>
        <xsl:variable name="myXML">
                <myXML>Hello</myXML>
        </xsl:variable>
        <xsl:template match="/">
                <data>
                        <xsl:value-of select="$myXML"/>
                </data>
        </xsl:template>
</xsl:stylesheet>

I would like output:
<data><myXML>Hello</myXML></data>

This should be quite obvious but I can't figure out
how to do this. :-/

-jp


        
                
__________________________________ 
Yahoo! Mail - PC Magazine Editors' Choice 2005 
http://mail.yahoo.com

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--



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