Subject: RE: [xsl] using count attribute in xsl:number and patterns From: "Robert Ogden" <Robert.Ogden@xxxxxxxx> Date: Tue, 23 Sep 2003 09:52:48 -0500 |
Yes, I am assuming I would like to use some type of grouping. I tried to use the <<or>> expression operator, but it does not work (i.e.<xsl:number format="1-1" level="multiple" count="chapter | para or subpara or otherElement"/>) Is this possible to do, or am I barking up the wrong tree? Thanks, Robert Ogden IETM Developer Navy Programs (763) 572-7121 >>> jim.fuller@xxxxxxxxxxxxxxxxxx 09/23/03 03:11AM >>> a bit confused by your queston as the following statement's count attribute <xsl:number format="1-1" level="multiple" count="chapter | para subpara"/> e.g. count="chapter | para | subpara" is already incuding 3 elements ? maybe you want some grouping ? gl, jim fuller -----Original Message----- From: Robert Ogden [mailto:Robert.Ogden@xxxxxxxx] Sent: 23 September 2003 00:18 To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx Subject: [xsl] using count attribute in xsl:number and patterns Can someone clarify how to use a pattern in the count attribute in xsl:number? I want to output the following sequence based on current node position. chapter-paranumber The problem is that para number is used in several elements. (i.e. intropara & para for simplicities sake) So every time I hit a new intropara OR para the number should be higher XML: <chapter> <intropara>An intro</intropara> <para>Some text<para> </chapter> Output 1-1 An intro 1-2 Some text XSL: <xsl:number format="1-1" level="multiple" count="chapter | para subpara"/> How do I include more than one element? Thanks for any help Robert Ogden IETM Developer Navy Programs (763) 572-7121 **********CONFIDENTIALITY NOTICE********** The information contained in this e-mail may be confidential and/or privileged and is intended for the sole use of the individual or organization named above. If you are not the intended recipient or an authorized representative of the intended recipient, any review, copying or distribution of this e-mail and its attachments, if any, is prohibited. If you have received this e-mail in error, please notify the sender immediately by return e-mail and delete this message from your system. XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list **********CONFIDENTIALITY NOTICE********** The information contained in this e-mail may be confidential and/or privileged and is intended for the sole use of the individual or organization named above. If you are not the intended recipient or an authorized representative of the intended recipient, any review, copying or distribution of this e-mail and its attachments, if any, is prohibited. If you have received this e-mail in error, please notify the sender immediately by return e-mail and delete this message from your system. XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] using count attribute in , Jim Fuller | Thread | [xsl] [ANN] <oXygen/> XML Editor 2., Mihai Ionescu |
Re: [xsl] Identity Transform, Abie Hamaoui | Date | RE: [xsl] Using variables to determ, Michael Kay |
Month |