This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: Identity transformation (without using xsl:copy)
- From: David Carlisle <davidc at nag dot co dot uk>
- To: xsl-list at lists dot mulberrytech dot com
- Cc: costello at mitre dot org
- Date: Mon, 18 Mar 2002 17:50:31 GMT
- Subject: Re: [xsl] Identity transformation (without using xsl:copy)
- References: <20020318165447.GA24675@jordyn.codenoevil.com> <3C96229E.514E9707@mitre.org>
- Reply-to: xsl-list at lists dot mulberrytech dot com
> 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