Subject: RE: [xsl] Numbering Grouped Child Elements From: "Clapham, Paul" <pclapham@xxxxxxxxxxxxx> Date: Tue, 20 Feb 2001 09:27:09 -0800 |
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: [xsl] 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 |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Numbering Grouped Child E, Jeni Tennison | Thread | RE: [xsl] Numbering Grouped Child E, Jake Stevenson |
Re: [xsl] Defining XSLT functions i, Uche Ogbuji | Date | RE: [xsl] Converting RSS to HTML, Ronan Brady |
Month |