Subject: Re: Wierd IE5B2 From: "Juliane Harbarth" <jhb@xxxxxxxxxxxxxx> Date: Tue, 23 Feb 1999 11:06:24 -0000 |
> >Can someone please explain how each of the following >works? (Or is meant to work) > >match >select >test > The following excerpt works, i.e. it arranges a piece of XML as <instruments> <instrument>violin</instrument> <instrument>piano</instrument> </instruments> into a smooth HTML table. It partly demonstrates the use of match and select. match="instrument[0]" tests whether it's the first sibling. I don't know anything about "test" yet. <xsl:template match="instruments"> <TABLE> <xsl:for-each select="instrument"> <xsl:choose> <xsl:when match="instrument[0]"> <TR> <TD WIDTH="150"> <FONT SIZE="+1">Instruments :</FONT> </TD> <TD> <xsl:value-of select="."/> </TD> </TR> </xsl:when> <xsl:otherwise> <TR> <TD WIDTH="150"> </TD> <TD> <xsl:value-of select="."/> </TD> </TR> </xsl:otherwise> </xsl:choose> </xsl:for-each> </TABLE> </xsl:template> XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: Streaming XSL, Michael . Kay | Thread | IE5b2 : Unknown method. .[-->first-, Shekhar Kshirsagar |
Streaming XSL, Oren Ben-Kiki | Date | Re: XTech '99 starts in two weeks, Paul Prescod |
Month |