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: trouble creating a link


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

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