[Home] [By Thread] [By Date] [Recent Entries]

Subject: Re: Copying XHTML
From: Ronald <ronald@xxxxxxxxxxx>
Date: Tue, 17 Apr 2001 14:07:54 +0100
With the stylesheet you send, you don't only say to copy the contents of body, you also say apply-templates on the root, which means it will also show you what's not in body.

Simply say something like:

<xsl:template match="html">
<html>
        <xsl:apply-templates select="body"/>
</html>
</xsl:template>


<xsl:template match="body"> <xsl:copy-of select="*"/> </xsl:template>

Hope this helps

Ronald


<xsl:template match="/">
  <html>
  <xsl:apply-templates/>
  <html>
</xsl:template>

Then I try to deep copy the body

<xsl:template match="body">
  <xsl:copy-of select="*"/>
</xsl:template>


XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list


Current Thread
  • Copying XHTML
    • Mika . Borner - Tue, 17 Apr 2001 07:46:43 -0400 (EDT)
      • Ronald - Tue, 17 Apr 2001 08:09:45 -0400 (EDT) <=
        • Ronald - Tue, 17 Apr 2001 08:13:19 -0400 (EDT)
          • Ronald - Tue, 17 Apr 2001 08:16:50 -0400 (EDT)
          • David Carlisle - Tue, 17 Apr 2001 08:50:54 -0400 (EDT)
          • Michael Kay - Tue, 17 Apr 2001 09:05:56 -0400 (EDT)
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member