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

RE: Problems with a right order display of tags

Subject: RE: Problems with a right order display of tags
From: Bertrand Sauviat <bsauviat@xxxxxxxxxxxxxx>
Date: Wed, 31 Mar 2004 11:57:21 +0200
display tag order by
OK 
I have understand..

But I must show extract because my XSL and my XML are very large..


My XSL:

<body>
<table border="1">
	<tr>
		<td>
		
		<xsl:apply-templates
select="/tim/Tache_struct"></xsl:apply-templates>
		<xsl:apply-templates
select="/tim/Tache_struct/Tache_atomique"></xsl:apply-templates>
		<xsl:apply-templates
select="/tim/Tache_struct/Tache_struct"></xsl:apply-templates> 
			
		</td>
	</tr>
	</table>
</body>	



My XML:

<tim>
<Tache_struct>
	<Tache_atomique></Tache_atomique>
	<Tache_atomique></Tache_atomique>
	<Tache_atomique></Tache_atomique>
	<Tache_struct></Tache_struct>
	<Tache_struct></Tache_struct>
	<Tache_atomique></Tache_atomique>
</Tache_struct>
</tim>


Actually after the transforamtion i have this result :
<tim>
<Tache_struct>
	<Tache_atomique></Tache_atomique>
	<Tache_atomique></Tache_atomique>
	<Tache_atomique></Tache_atomique>
	<Tache_atomique></Tache_atomique>
	<Tache_struct></Tache_struct>
	<Tache_struct></Tache_struct>
	
</Tache_struct>
</tim>


I try to use <XSL:sort> in add an attribute at each Tache_struct and each
Tache_atomique 
But the result is the same.

Anybody has a solution to keep the same order of the tag after the
transformation?

Thanks :)









-----Original Message-----
From: Andrew Welch [mailto:AWelch@xxxxxxxxxxxxxxx] 
Sent: Wednesday, March 31, 2004 11:48 AM
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject: RE:  Problems with a right order display of tags


> Yes i know that, i haven't use the good syntax in the mail
> But I know all the right syntax!!
> 
> I want a solution more "subjective"
> Please :) 


But what is this?

 <xsl :call-templates match=  /A >

It is neither

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

Or

<xsl:apply-templates select="/A"/>

If you know all the right syntax then use it!  No one can guess from
your made up syntax what you are asking...

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.