|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: xsl: help (urgent)
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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








