[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: Copying XHTML

Subject: RE: Copying XHTML
From: "Michael Kay" <mhkay@xxxxxxxxxxxx>
Date: Tue, 17 Apr 2001 14:08:22 +0100
RE:  Copying XHTML
You don't say how it's failing.

Not matching anything? Take a look at the namespaces.

Mike Kay

> -----Original Message-----
> From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx]On Behalf Of Ronald
> Sent: 17 April 2001 14:11
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject: Re:  Copying XHTML
> 
> 
> 
> 
> Don't know how the code ended up like that I just copied it. sorry
> Trying one more time:
> 
> <xsl:template match="html">
> <html>
>          <xsl:apply-templates select="body"/>
> </html>
> </xsl:template>
> 
> 
> <xsl:template match="body">
>    <xsl:copy-of select="*"/>
> </xsl:template>
> 
> At 02:07 PM 4/17/01 +0100, you wrote:
> >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">
> ></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
> 
> 
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
> 

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


Current Thread
  • Re: Copying XHTML, (continued)
    • 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) <=
    • Mika . Borner - Wed, 18 Apr 2001 01:19:00 -0400 (EDT)

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.