|
Subject: I need < - I get < From: "Nic Williams" <nwilliam@xxxxxxxxxxxxxxxxxxxxx> Date: Tue, 2 Feb 1999 15:31:30 -0000 |
I want to take the following XML and process it into HTML.
The XML is:
<UNIQUEMEMBER>
<DN>
<CN>Nic Williams</CN>
<MAIL>nwilliam@xxxxxxxxxxxxxxxxxxxxx</MAIL>
</DN>
</UNIQUEMEMBER>
<DN>
<CN>Fred Flintstone</CN>
<MAIL>freddy@xxxxxxxxxxxx</MAIL>
</DN>
</UNIQUEMEMBER>
I would like to get the following HTML:
<LI><A HREF="mailto:nwilliam@xxxxxxxxxxxxxxxxxxxxx">Nic Williams</A></LI>
<LI><A HREF="mailto:freddy@xxxxxxxxxxxx">Fred Flintstone</A></LI>
Here are the references I have in my XSL:
<xsl:template match="UNIQUEMEMBER/DN/MAIL" priority="1">
<xsl:cdata><LI><A HREF="mailto:</xsl:cdata>
<xsl:apply-templates/>
<xsl:cdata>"></xsl:cdata>
</xsl:template>
<xsl:template match="UNIQUEMEMBER/DN/CN" priority="1">
<xsl:apply-templates/>
<xsl:cdata></A></LI></xsl:cdata>
</xsl:template>
The actual output I get contains the < characters as opposed to the <
characters I need to get. I am using the xt processor.
Can anyone point me to where I am going wrong?
Cheers,
Nic.
________________________________________________________________________
Nicolas Williams Internet: nwilliam@xxxxxxxxxxxxxxxxxxxxx
Internet Specialist Phone: 44-(0)1223-325285 (direct)
Schlumberger Cambridge Research : 44-(0)1223-315576
High Cross Fax: 44-(0)1223-311830
Madingley Road Mobile: 44-(0)410 726330
Cambridge http://www.cambridge.scr.slb.com
CB3 OEL http://www.slb.com
Microsoft Certified Systems Engineer (MCSE)
Microsoft Certified Professional + Internet (MCP + Internet)
'To err is human. To really mess something up takes a computer.'
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| Passing parameters from Browser to , hyflam | Thread | Re: I need < - I get <, David Carlisle |
| Passing parameters from Browser to , hyflam | Date | Fw: I need < - I get <, Oren Ben-Kiki |
| Month |