Next in thread → Next in month →

Re: [xml-dev] Including unparsed xml (xhtml code) code in xslt output.

From
Philippe Poulard <>
To
Mukul Gandhi <>
Date
2007-11-26T08:50:44Z
ID
<>
Thread
Re: [xml-dev] Including unparsed xml (xhtml code) code in xslt output.
hi,

I prefer this one :

<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:data="http://www.example.com" version="1.0">

<xsl:output indent="yes" />

<data:node>
   <nodexhtml>
    <html><h1>Hello</h1></html>
   </nodexhtml>
</data:node>

<xsl:template match="/">
   <xsl:copy-of select="document('')/*/data:node/nodexhtml/*"/>
</xsl:template>

</xsl:stylesheet>

-- 
Cordialement,

               ///
              (. .)
  --------ooO--(_)--Ooo--------
|      Philippe Poulard       |
  -----------------------------
  http://reflex.gforge.inria.fr/
        Have the RefleX !
Next in thread → Next in month →