xsl-list
[Top] [All Lists]

Re: Copy XML into an attribute

2003-03-25 06:20:02

XML attributes can not contain elements (or any other XML
structure). So you can not copy an element into an attribute value.

If you want to linearise teh XMl tree into a string to put into an
attribute you will need templates matching elements that explictly
writes out the string syntax
&lt;<xsl:value-of name()"/> ...etc
The archives of this list, or the FAQ will show several such templates.

David

________________________________________________________________________
This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list



<Prev in Thread] Current Thread [Next in Thread>