[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

Fw: I need < - I get &lt;


Subject: Fw: I need < - I get &lt;
From: "Oren Ben-Kiki" <oren@xxxxxxxxxxxxx>
Date: Tue, 2 Feb 1999 18:11:32 +0200

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.

Share & Enjoy,

    Oren Ben-Kiki



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



Current Thread
Keywords