OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[XSLT] - Recognize an XML node



Hi.
I've a transformation little (?) problem.
My XML have following structure:
 
               <Routines>
                  <Constants>
                     <Constant Name="HKEY_CLASSES_ROOT" Scope="Private" RetType="" />
                     <Constant Name="HKEY_CURRENT_USER" Scope="Private" RetType="" />
                  </Constants>
                  <Functions>
                     <Function Name="bWriteRegValue" Scope="Private" RetType="Boolean" />  
                  </Functions>
               </Routines>

At this sheet I apply a filter  extracting only rows conteining  "Scope" attribute.
Result of this work is an HTML table with three rows (two for Constant and one for Function) and... now the problem.
 
I need a title row each time change element as, p.e., from Constant to Function
 
Constant          Scope
HKEY_CLASSES_ROOT   Private
HKEY_CURRENT_USER   Private
Function          Scope
bWriteRegValue      Private
 
PS: I use this ns "www.w3.org/TR/WD-xsl".

Thanks & bye
Nicola
 
 
 
============== :-) ===============
Nicola Martella
SAP Italia Consulting S.r.l. - Milano
email1: nicola_martella@sap-consulting.it (aziendale)
email2: nmartella@lycosmail.com (preferita per posta privata)
email3: nmartella@libero.it (privata)
email4: nmartella@tiscalinet.it (privata)
email5: nmartella@tin.it (privata)
Fax: 1782273706