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


>
> Shouldn't the following copy source to the result tree?
>
> <xsl:template match="@*|node()" >
>    <xsl:apply-templates
>     select = "@*|node()"/>
> </xsl:template>
> <xsl:template match="/">
>         <xsl:apply-templates select="*" />
> </xsl:template>
>

No, it does nothing. Since you've defined rules for all node types (except
namespaces) and since your stylesheet has no instructions that output
anything, it's easy to see that this stylesheet produces no output.

There's an example of an identity stylesheet in the XSLT Recommendation
under <xsl:copy> if I remember right.

Mike Kay
Software AG


 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]