This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: Lost Attributes?
- From: David Carlisle <davidc at nag dot co dot uk>
- To: xsl-list at lists dot mulberrytech dot com
- Date: Tue, 5 Mar 2002 19:51:19 GMT
- Subject: Re: [xsl] Lost Attributes?
- References: <20020305192231.91536.qmail@web10103.mail.yahoo.com>
- Reply-to: xsl-list at lists dot mulberrytech dot com
> Well, I figured out one bug. I guess you cannot use the xsl:copy-of
> when you call an attribute value but MUST use xsl:value-of?
you can use copy-of on attribute nodes but it copies the node, so if you
put it inside xsl:attribute then you're trying to add an attribute to an
attribute which doesn't work.
If you want teh attribute in teh result to have same name as the source
xsl:copy-of is easier, if you are\ changing the name using xsl:attribute
as you have, or simpler in most cases, an attribute value template,
must be used.
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