On Tuesday 05 August 2003 07:48 am, J�rg Walter wrote:
> Am Tuesday, 05. August 2003 13:33, schrieb Tod Harter:
> > > Add the following to your xsl
> > >
> > > <xsl:template match="*">
> > >   <xsl:copy>
> > >           <xsl:copy-of select="@*"/>
> > >           <xsl:apply-templates/>
> > >   </xsl:copy>
> > > </xsl:template>
> >
> > In this case the less verbose
> >
> > <xsl:template match="*">
> >     <xsl:copy-of select="."/>
> > </xsl:template>
> >
> > works just as well since it will still match everything.

Sorry, should be <xsl:apply-templates/> not <xsl:copy-of .../> sigh.
>
> Sorry, but this is wrong. With your experience, you surely know that
> copy-of copies a whole subtree, and nothing in your template continues
> processing, so you would bypass most other template rules. Just imagine a
> XML snippet <a><b><c/></b></a>. A match on "a" would work, a match on "c"
> would not, as the XSLT processor would never get that far.

-- 
Giant Electronic Brain
Internet/E-Commerce Consulting Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to