This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

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@lists.mulberrytech.com
> [mailto:owner-xsl-list@lists.mulberrytech.com]On Behalf Of Ronald
> Sent: 17 April 2001 14:11
> To: xsl-list@lists.mulberrytech.com
> Subject: Re: [xsl] 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]