xsl-list
[Top] [All Lists]

Nested elements problem

2003-11-27 15:27:52

   Hi,

   I am trying to create a XSL for an XML for display purposes. 

   I can't seem to figure out how to write the XSL for nested sections: "Appel
Cnt-Appel="1"> and the same for the Affectation Cnt-Affect.

   I had tried to use something like <xsl:for-each select="CCS-APPELS.Appel">
but to no avail.

   Here is the a sample of the XML file in question.

   What would a very simple XSL look like to display as HTML for this?

   Thank You

   J


<CCS-APPELS>
        <NomFichier_id>CCS-APPELS-20030707</NomFichier_id>
        <Appel Cnt-Appel="1">
                <CCS_id>C8</CCS_id>
                <Affectation Cnt-Affect="1">
                        
<RessourceAffectee_dthr>20030707102909</RessourceAffectee_dthr>
                </Affectation>
                <Affectation Cnt-Affect="2">
                        
<RessourceAffectee_dthr>20030707103014</RessourceAffectee_dthr>
                </Affectation>
        </Appel>
        <Appel Cnt-Appel="2">
                <CCS_id>C8</CCS_id>
        </Appel>
</CCS-APPELS>



-- 
Justin F. Knotzke 
jknotzke(_at_)shampoo(_dot_)ca 
http://www.shampoo.ca PGP: http://www.shampoo.ca/pubkey.txt
Colorless green ideas sleep furiously - Noam Chomsky

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list



<Prev in Thread] Current Thread [Next in Thread>