xsl-list
[Top] [All Lists]

RE: Problems with a right order display of tags

2004-03-31 02:57:21
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(_at_)piper-group(_dot_)com] 
Sent: Wednesday, March 31, 2004 11:48 AM
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: RE: [xsl] 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...





--+------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--+--