xsl-list
[Top] [All Lists]

Re: Storing and retrieving html tags in a variable

2003-09-12 02:01:58

Any way to store html tags in a variable,

XSLT can not access the tags in the source document or manipulate them
in any way, tags are part of teh lexical information of teh original XMl
file that is thrown away when building the node tree.
However your variable does contain a result tree fragment representing
an a element node with href attribute and a text node child, however
xsl:value-of always generates a string. you want <xsl:copy-of.

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