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

RE: Numbering Grouped Child Elements

Subject: RE: Numbering Grouped Child Elements
From: "Clapham, Paul" <pclapham@xxxxxxxxxxxxx>
Date: Tue, 20 Feb 2001 09:27:09 -0800
RE:  Numbering Grouped Child Elements
Why not restructure your XML so that you identify what a Step is?  Then you
could use xsl:number.  And it would simplify the XSL you designed to get
around the problem the first time and make it easier to deal with other
forms of the same XML that want you to document more than one Data_Entry in
a group.

<Steps>
   <Step>
	<Data_Entry>
		<Field_Name>User</Field_Name>
		<General_Data>your user name</General_Data>
	</Data_Entry>
	<Data_Entry>
		<Field_Name>password</Field_Name>
		<General_Data>your password</General_Data>
	</Data_Entry>
   </Step>
   <Step>
	<Button_Click>
		<Button_Image>OK</Button_Image>
	</Button_Click>
   </Step>
   <Step>
	<Data_Entry>
		<Field_Name>Item Number</Field_Name>
		<Specific_Data>00023</Specific_Data>
	</Data_Entry>
   </Step>
</Steps>

PC2

-----Original Message-----
From: Jake Stevenson [mailto:Jake.Stevenson@xxxxxxxx]
Sent: February 20, 2001 08:44
To: 'XSL-List@xxxxxxxxxxxxxxxxxxxxxx'
Subject:  Numbering Grouped Child Elements


I sent this to the list some time ago and received no answer.  I'm still
banging my head on this one and hope someone new may be able to help.  

I need to be able to output numbers based on groups of child elements.  I
have an XML file similar to the following:

<Steps>
	<Data_Entry>
		<Field_Name>User</Field_Name>
		<General_Data>your user name</General_Data>
	</Data_Entry>
	<Data_Entry>
		<Field_Name>password</Field_Name>
		<General_Data>your password</General_Data>
	</Data_Entry>
	<Button_Click>
		<Button_Image>OK</Button_Image>
	</Button_Click>
	<Data_Entry>
		<Field_Name>Item Number</Field_Name>
		<Specific_Data>00023</Specific_Data>
	</Data_Entry>
</Steps>

</etc>

 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.