|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: Numbering Grouped Child Elements
Unfortunately, that doesn't fit into what a step really is according to our designs. We have an alternate output format that presents each "step" individually, so it would output the following: 1. Enter your user name in the User field. 2. Enter your password in the Password field. 3. Click Ok. The output I'm trying to achieve now is for people who want less verbose instructions. It's simply trying to consolidate consecutive elements of the same type. Jake A. Stevenson -----Original Message----- From: Clapham, Paul [mailto:pclapham@xxxxxxxxxxxxx] Sent: Tuesday, February 20, 2001 11:27 AM To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx Subject: 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 XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








