Re: Fw: I need < - I get &lt;

Subject: Re: Fw: I need < - I get &lt;
From: Tyler Baker <tyler@xxxxxxxxxxx>
Date: Tue, 02 Feb 1999 18:30:01 -0500
Oren Ben-Kiki wrote:

> Nic Williams <nwilliam@xxxxxxxxxxxxxxxxxxxxx> wrote:
> <xsl:template match="UNIQUEMEMBER/DN/MAIL" priority="1">
>  <xsl:cdata>&lt;LI>&lt;A HREF="mailto:</xsl:cdata>
>  <xsl:apply-templates/>
>  <xsl:cdata>"></xsl:cdata>
> </xsl:template>
>
> You need:
>
> <xsl:template match="UNIQUEMEMBER/DN" priority="1">
>  <LI> (or <xsl:element name="LI">)
>  <xsl:element name=A">
>     <xsl:attribute name="href">
>         <xsl:text>mailto:</xsl:text>
>         <xsl:value-of select="MAIL"/>
>     </xsl:attribute>
>     <xsl:value-of select="CN"/>
>  </xsl:element>
>  </LI> (or </xsl:element>)
> </xsl:template>
>
> The "<xsl:cdata>" tag isn't in the draft. It's a Microsoft extension. The
> standard XSL tags are perfectly adequate for emitting valid XML output.

They are convenient and I think that in addition to xsl:cdata, xsl:entity-ref
is a perfectly good addition to XSL that will be useful to XSL users in the
future.  I am surprised these two template element additions did not make it
into the last draft...

Tyler


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread