Re: [xsl] number different nodes

Subject: Re: [xsl] number different nodes
From: Wendell Piez <wapiez@xxxxxxxxxxxxxxxx>
Date: Tue, 02 Dec 2003 16:53:06 -0500
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@xxxxxxxxxxxxxxxx
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



Current Thread