This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: trouble creating a link
- To: xsl-list at mulberrytech dot com
- Subject: Re: trouble creating a link
- From: Dan Morrison <dman at es dot co dot nz>
- Date: Tue, 30 May 2000 05:49:22 +1200
- Organization: Disorganised
- References: <200006011650.MAA08853@mulberrytech.com> <001a01bfcc38$0de94710$ac377118@cr273144a>
- Reply-To: xsl-list at mulberrytech dot com
Wayne Davis wrote:
>
> I'm trying to create a simple link based on whether or not an email address
> is included in my XML file...
Two issues: One looks like a typo, as it would make your syntax
unparseable - you seem to have closed xsl:attribute twice. Once as a
singlrton, once as a container. I blame the email...
Second, I'd imagine you want the value of the email to be INSIDE the
closing <a>, otherwise nothing's getting linked at all!
> <xsl:value-of select="EMAIL"/>
> </a></font></li>
However, neither of these problems should cause everything to get
linked. As much as I hate some of the long sources posted here, perhaps
we need a little more context to see where the problem lies.
Could be you're using an overly forgiving transformer that's
second-guessing your errors and getting it wrong. However that would
make the transformer very very non-compliant, XML is NOT as friendly as
HTML. (for good reason)
.dan.
:=====================:====================:
: Dan Morrison : The Web Limited :
: http://here.is/dan : http://web.co.nz :
: dman@es.co.nz : danm@web.co.nz :
: 04 384 1472 : 04 495 8250 :
: 025 207 1140 : :
:.....................:....................:
: If ignorance is bliss, why aren't more people happy?
:.........................................:
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list