This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: xsl: help (urgent)
- To: xsl-list at lists dot mulberrytech dot com
- Subject: Re: [xsl] xsl: help (urgent)
- From: Peter Flynn <peter at silmaril dot ie>
- Date: Tue, 10 Apr 2001 09:58:00 +0100
- Reply-To: xsl-list at lists dot mulberrytech dot com
At Tuesday, 10 April 2001, Jeni wrote:
>> <DESCRIPTION>Search and download the <a
>> href=\"http://openworld.oracle.com/oowdba-wwwprd-
>> apps/plsql/oow_user.show_public?p_event=3&p_type=search\">Oracle
>> OpenWorld 2000 technical papers and presentations</a>, over 250
>> papers and presentations in total from Oracle and partner companies.
>> </DESCRIPTION>
>
>As far as the XSLT processor is concerned the < is just a
>less-than sign - it doesn't mean anything special at all. The text
>within the DESCRIPTION element is just text. It doesn't know that you
>mean it to be HTML.
That last sentence should probably go into a FAQ :-)
>The best thing that you can do is to have the DESCRIPTION element hold
>HTML rather than a string.
Why not just add a template for the "a" element?
<xsl:template match="a">
<a href="{@href}">
<xsl:apply-templates/>
</a>
</xsl:template>
(or a more complex one to handle name as well as or instead of href).
///Peter
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list