RE: [TFUI] OT? "if" in XSLT (Re: XML -> XSLT -> XHTML Nirvana)

"Bayley, Alistair" <[email protected]> Mon, 14 Mar 2005 14:06:01 -0000
Newsgroups gmane.comp.programming.test-first-user-interfaces
Message-ID <7DFF3BC6CA957441AEADA7F340BFAA340A0293DA@GBLONEX11.lon.invesco.com>
> From: Ron Jeffries [mailto:[email protected]] 
> 
> > Do you think maybe this would be a better way?   
>     xpmag/               It
> > produces the link correctly, but there's still extra crud 
> in the output, just like the
> > "file1.txt" line in the first test. 
> 
> I'm sorry, Alistair ... I can't figure out what you're telling me
> here.
> 
> Did yahoo maybe foul up my XSLT insert or something?


Does my message look like garbage to you? (syntactically, not semantically
:-)

Your message:
http://groups.yahoo.com/group/TestFirstUserInterfaces/message/668

My reply:
http://groups.yahoo.com/group/TestFirstUserInterfaces/message/669

(summary: I took your posted XSL, wrapped it with <xsl:stylesheet ...>, and
then ran it through the MSXSL processor with the sample input given in my
message 669.)


(Now for the semantics...)

I'm trying to say two things:

 1. there seems to be a minor bug in your XSL where it creates an extra
empty span. This is in the case where you have both a <title> and a
<shorttitle> under the <header> node (I assume that's valid input).

 2. one possible change (improvement?) is to move the test further inside
the <a> node (and make it an xsl:choose).


It's hard to know if what I'm proposing is sensible for you because I don't
have enough of the context for your problem. I'm just hoping that showing
you the code for the <xsl:choose> might give you an idea.

Alistair.

-----------------------------------------
*****************************************************************
Confidentiality Note: The information contained in this   message, and any
attachments, may contain confidential   and/or privileged material. It is
intended solely for the   person(s) or entity to which it is addressed. Any
review,   retransmission, dissemination, or taking of any action in
reliance upon this information by persons or entities other   than the
intended recipient(s) is prohibited. If you received  this in error, please
contact the sender and delete the   material from any computer.
*****************************************************************



To unsubscribe, email:
TestFirstUserInterfaces-unsubscribe-hHKSG33TihhbjbujkaE4pw@public.gmane.org
 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/TestFirstUserInterfaces/

<*> To unsubscribe from this group, send an email to:
    TestFirstUserInterfaces-unsubscribe-hHKSG33TihhbjbujkaE4pw@public.gmane.org

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/