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

[XSLT] - Recognize an XML node

Subject: [XSLT] - Recognize an XML node
From: "Nicola Martella" <nmartella@xxxxxxxxxxxxx>
Date: Thu, 15 Feb 2001 12:04:37 +0100
martella milano
Hi.
I've a transformation little (?) problem.
A fragment of my XML is following:

<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  until here it's all ok.

Now, I need a title row each time element changes as, p.e., from Constant to
Function and name column title  must have "Constant" if its follow elements
are <Constant>, "Function" if its follow elements are <Function> (I cannot
use <Constants> and <Functions> because filter doesn't capture these
elements).

Constant          Scope
HKEY_CLASSES_ROOT   Private
HKEY_CURRENT_USER   Private
Function          Scope    RetType
bWriteRegValue      Private    Boolean

PS: I use "www.w3.org/TR/WD-xsl" namespace and MSXML 3.0.

Thanks & bye
Nicola



============== :-) ===============
Nicola Martella
SAP Italia Consulting S.r.l. - Milano
email1: nicola_martella@xxxxxxxxxxxxxxxxx (aziendale)
email2: nmartella@xxxxxxxxxxxxx (preferita per posta privata)
email3: nmartella@xxxxxxxxx (privata)
email4: nmartella@xxxxxxxxxxxxx (privata)
email5: nmartella@xxxxxx (privata)
Fax: 1782273706


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


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.