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: Lost Attributes?



> 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]