This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: How do you change markup to text in XSLT?
- To: xsl-list at lists dot mulberrytech dot com
- Subject: Re: [xsl] How do you change markup to text in XSLT?
- From: Mike Moran <mmoran at netphysic dot com>
- Date: Fri, 07 Sep 2001 20:03:19 +0100
- References: <MFENIKFAMDMOGMBPIAEEGEPMCCAA.akane@opentext.com>
- Reply-To: xsl-list at lists dot mulberrytech dot com
Andrew Kane wrote:
> Purpose: I was trying to put an XML subtree into an attribute, but it seemed
> like the default in XSLT was to extract the text from the subtree (similar
> to an xsl:value-of). I wanted the tags in there as well.
[ ... ]
Isn't this illegal in XML? I seem to remember either "<" or ">" being
disallowed as attribute values.
Obviously you could escape them. However, why would you want to put an
xml tree into an attribute value? Can't you put them in as elements?
--
Mike
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list