This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
placing value inbetween quotes in output
- To: xsl-list at lists dot mulberrytech dot com
- Subject: [xsl] placing value inbetween quotes in output
- From: Eric Smith <Eric dot Smith at fruitcom dot com>
- Date: Fri, 12 Oct 2001 00:02:30 +0200
- Reply-To: xsl-list at lists dot mulberrytech dot com
Not a very helpful subject line, anyway
I have xml like the following
<link url="http://whatever.com" text="This is easy to match"/>
and output must be
<xsl:template match="link">
<fo:basic-link color="blue" text-decoration="underline"
external-destination="http://whatever.com">
This is easy to match
</fo:basic-link>
</xsl:template>
if I do this:
<xsl:template match="link">
<fo:basic-link color="blue" text-decoration="underline"
external-destination="<xsl:value-of select="@url"/> ">
<xsl:value-of select="@text"/>
</fo:basic-link>
</xsl:template>
then xalan falls over with the complaint that external-destination
cannot contain '<'
What is a good way to get the @url value inbetween those quotes?
--
Eric Smith
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list