Subject: RE: [xsl] [XSL] XSL and <table> From: Bertrand Sauviat <bsauviat@xxxxxxxxxxxxxx> Date: Mon, 17 May 2004 17:30:03 +0200 |
Here is my XSL in the good order: <xsl:template match="fonction/return"> <b><xsl:text>Return values</xsl:text></b><br/> <table width="100%" align="left"> <xsl:for-each select="valuepos"> <tr> <td><xsl:value-of select="@return_value"/></td> <td><xsl:value-of select="@meaning"/></td> </tr> </xsl:for-each> <xsl:for-each select="valueneg"> <tr> <td><xsl:value-of select="@return_value"/></td> <td><xsl:value-of select="@meaning"/></td> </tr> </xsl:for-each> </table> </xsl:template> <!-- affichage des notes et remarks --> <xsl:template match="fonction/notes"> <xsl:call-template name="notes"/> </xsl:template> <xsl:template match="structure/notes"> <xsl:call-template name="notes"/> </xsl:template> <xsl:template name="notes"> <b><xsl:text>Notes</xsl:text></b><br/> <br/><xsl:for-each select="descendant::text"> <li> <xsl:value-of select="@text_value"/><br/> </li><br/> </xsl:for-each><br/> </xsl:template> -----Message d'origine----- De : David Carlisle [mailto:davidc@xxxxxxxxx] Envoyi : lundi 17 mai 2004 17:25 @ : xsl-list@xxxxxxxxxxxxxxxxxxxxxx Objet : Re: [xsl] [XSL] XSL and <table> > I have a template for <notes> How were we supposed to guess that, as you didn't show this template or the template for the fonction element, which is presumaby around the return and notes elements, even though your sample input didn't show that. There are any number of reasons why some text could appear in some order in a browser, it could be being displayed out of its normal order due to some applied CSS styling, or it could be actually in that order in the generated html as the xslt has produced the result in that order. In the latter case it could be for example because you apply templates to notes before you apply them to return elements. If you don't show your code, it's hard to guess. David -- The LaTeX Companion http://www.awprofessional.com/bookstore/product.asp?isbn=0201362996 http://www.amazon.co.uk/exec/obidos/tg/detail/-/0201362996/202-7257897-06198 04 ________________________________________________________________________ This e-mail has been scanned for all viruses by Star Internet. The service is powered by MessageLabs. For more information on a proactive anti-virus service working around the clock, around the globe, visit: http://www.star.net.uk ________________________________________________________________________
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] [XSL] XSL and <table>, Andrew Welch | Thread | Re: [xsl] [XSL] XSL and <table>, David Carlisle |
Re: [xsl] [XSL] XSL and <table>, David Carlisle | Date | [xsl] xslt filtering question, davekennedy |
Month |