xsl-list
[Top] [All Lists]

Re: number different nodes

2003-12-03 08:41:42
Thank you,
i have tested so long but could not get a result.
Markus


 Hi Markus,

At 04:18 PM 12/2/2003, you wrote:
I am having a trouble with numbering different childs from a node "form".
I
tried but I found no possibility.
<xsl:number level="multiple" count="form|???form::child*???" />

Try count="form | form/*"

It will count the form elements and their direct children (but not their 
deeper descendants).

The XPath "form/*" is short for "child::form/child::*". As a pattern, it 
will match any child of a form (that itself is a child of something, which

all of them are).

Cheers,
Wendell

<form>
  <OneQuest>
  <Option>
  <CheckBox>
  <Gap>
  ...
</form>
<form>
  <Option>
  <OneQuest>
  <Gap>
  <CheckBox>
  ...
</form>


======================================================================
Wendell Piez                            
mailto:wapiez(_at_)mulberrytech(_dot_)com
Mulberry Technologies, Inc.                http://www.mulberrytech.com
17 West Jefferson Street                    Direct Phone: 301/315-9635
Suite 207                                          Phone: 301/315-9631
Rockville, MD  20850                                 Fax: 301/315-8285
----------------------------------------------------------------------
   Mulberry Technologies: A Consultancy Specializing in SGML and XML
======================================================================


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


-- 
+++ GMX - die erste Adresse für Mail, Message, More +++
Neu: Preissenkung für MMS und FreeMMS! http://www.gmx.net



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



<Prev in Thread] Current Thread [Next in Thread>