|
next
|
Subject: using entity reference in concat function Author: Hans-Peter Küchler Date: 29 Apr 2002 04:55 PM
|
oops, the line
{xsl:value-of select="concat('<', item, '> '', item, '' "', item, '"')"/}
should look like this:
{xsl:value-of select="concat('<', item, '> '', item, '' "', item, '"')"/}
Hans-Peter Küchler
|
top
|
Subject: Re: using entity reference in concat function Author: Minollo I. Date: 29 Apr 2002 05:17 PM
|
>...
>I tried the following:
>
>{xsl:value-of select="concat('<', item, '> '', item, ''
>"', item, '"')"/}
I think the problem is that with '' "' you are trying to create a
string which is ''"'
That won't work, as entities are resolved one step before the XML fragment
is actually parsed; you should get the same behavior using XalanJ or MSXML.
I think something like this will do what you are trying to do:
{xsl:variable name="apos" select='"'"'/}
{xsl:value-of select="concat('<', item, '> ', $apos, item, $apos, '
"', item, '"')"/}
Things would be probably simpler if you were not using concat.
Hope this helps,
Minollo
|
|
|
|