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]
Other format: [Raw text]

Re: Identity transformation (without using xsl:copy)



> Does anyone have a stylesheet which does an identity transformation
> without using xsl:copy?  


<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform";
                version="1.0"
                >
<xsl:template match="/">
<xsl:copy-of select="/"/>
</xsl:stylesheet>

But assuming that isn't an answer (perhaps it is, why would you want to
avoid xsl:copy?) maybe you just want to throw in
      <xsl:for-each select="namespace::**">
        ... er something but I think you have to use copy-of, so if your
requirement not to use copy also applies to copy-of then I don't know...

David

_____________________________________________________________________
This message has been checked for all known viruses by Star Internet
delivered through the MessageLabs Virus Scanning Service. For further
information visit http://www.star.net.uk/stats.asp or alternatively call
Star Internet for details on the Virus Scanning Service.

 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]