This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]