[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">
    <td><xsl:value-of select="@return_value"/></td>
    <td><xsl:value-of select="@meaning"/></td>
    <xsl:for-each select="valueneg">
    <td><xsl:value-of select="@return_value"/></td>
    <td><xsl:value-of select="@meaning"/></td>


<!-- affichage des notes et remarks -->
<xsl:template match="fonction/notes">
<xsl:call-template name="notes"/>

<xsl:template match="structure/notes">
<xsl:call-template name="notes"/>

<xsl:template name="notes">
  <br/><xsl:for-each select="descendant::text">
  <xsl:value-of select="@text_value"/><br/>

-----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

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.


The LaTeX Companion

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:

Current Thread


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.
First Name
Last Name
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.