[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

[xsl] Copying XHTML


Subject: [xsl] Copying XHTML
From: Mika.Borner@xxxxxxxx
Date: Tue, 17 Apr 2001 14:46:31 +0300

Hi

I have a normal  XHTML document as the source.

My goal is to copy anything under the body tag to the output.

The XSL handels all the necessary XHTML tags to make it a valid document.

First I try to match the root element:

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

I only want everything beneath the body element.
The other tags I will compose myself.

After hours of trying I haven't found out....

Can anyone help me?

Thanks, Mika


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



Current Thread
  • [xsl] Copying XHTML
    • Mika . Borner - Tue, 17 Apr 2001 14:46:31 +0300 <=
      • Ronald - Tue, 17 Apr 2001 14:07:54 +0100
        • Ronald - Tue, 17 Apr 2001 14:11:27 +0100
          • Michael Kay - Tue, 17 Apr 2001 14:08:22 +0100
          • Ronald - Tue, 17 Apr 2001 14:14:59 +0100
Keywords