[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: first occurance of node with hierarchy

Subject: Re: first occurance of node with hierarchy
From: Wendell Piez <wapiez@xxxxxxxxxxxxxxxx>
Date: Mon, 25 Mar 2002 17:24:38 -0500
xslt first occurance
Andrew,

How about

match="para[not(preceding-sibling::para |
                parent::specpara[preceding-sibling::para |
                                 preceding-sibling::specpara/para])]"

and
<xsl:number count="*[starts-with(local-name(), 'step')]" level="multiple"/>

Any closer?

Cheers,
Wendell

At 03:24 PM 3/25/2002, Joerg wrote:
Andrew Welch wrote:
There are five step nodes
<step1><step2><step3><step4><step5>
...
I need to output a number at the first occurance of a <para> within each
step, which can be as a child or within a <specpara>

There are several possibilities:
1. (step1//para|step2//para|step3//para|step4//para|step5//para)[1]
2. para[ancestor::step1 or ancestor::step2 or ancestor::step3 or ancestor::step4 or ancestor::step5][1]
and a multitide more.


======================================================================
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

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.