[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: [XSL] XSL and <table>

Subject: RE: [XSL] XSL and <table>
From: Bertrand Sauviat <bsauviat@xxxxxxxxxxxxxx>
Date: Mon, 17 May 2004 17:30:03 +0200
bertrand sauviat
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 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

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.