[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: xsl: help (urgent)

Subject: Re: xsl: help (urgent)
From: Peter Flynn <peter@xxxxxxxxxxx>
Date: Tue, 10 Apr 2001 09:58:00 +0100
pete flynn oracle
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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.