certainly did, thanks!

On Tue, 4 Mar 2003, Daisuke Maki wrote:

> This oughta do it:
> 
>    <xsl:template match="*">
>       <xsl:copy>
>          <xsl:copy-of select="@*" />
>          <xsl:apply-templates />
>       </xsl:copy>
>    </xsl:template>
> 
> --d
> 
> Tom Howe wrote:
> > In XLST, if I do 
> > 
> > <xsl:apply-templates>
> > 
> > On a piece of xml that has a tag that is not defined by a <xsl:template> 
> > it is completely ignored. Is there a way to have it simply included "as 
> > is". This is the behaviour I am used to from XPathScript.
> > 
> > The only alternative I can come up with is to define a default template 
> > that picks up anything that isnt processed and replicates it as it was..
> > 
> > 
> > <xsl:template match="*">
> > 
> >   <xsl:element name="{name()}" >
> >     <xsl:for-each select="@*">
> >       <xsl:attribute name="{name()}" ><xsl:value-of select="."/></xsl:attribute>
> >    </xsl:for-each>
> > 
> >   <xsl:apply-templates/>
> > 
> >   </xsl:element>
> > </xsl:template>
> > 
> > but im guessing there is a neater way?
> > 
> > Cheers, tom
> > 
> > 
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > 
> > 
> 
> 


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

Reply via email to