xsl-list
[Top] [All Lists]

RE: inserting XML from the nodeset

2005-10-30 13:44:33
Just use xsl:copy-of instead of xsl:value-of

Michael Kay
http://www.saxonica.com/ 

-----Original Message-----
From: jp [mailto:jpkeisala(_at_)yahoo(_dot_)com] 
Sent: 30 October 2005 19:29
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: [xsl] inserting XML from the nodeset

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>
--~--





--~------------------------------------------------------------------
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>