Subject: placing value inbetween quotes in output
From: Eric Smith <Eric.Smith@xxxxxxxxxxxx>
Date: Fri, 12 Oct 2001 00:02:30 +0200
|
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
|