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

position of parent

Subject: position of parent
From: Xavier Defrang <xavier@xxxxxxxxxxxx>
Date: Mon, 26 Feb 2001 12:18:34 +0100 (CET)
position of parent
Hi,

I've got an XML document with <chapter> elements containing
<section> elements.  I'm currently writing an XSL that
transforms such XML documents into XHTML.  I want my sheet
to automatically number chapters and sections.  For this 
purpose, i use the <xsl:value-of select="position()"/> in my
template that match the "chapter" element.

Now i'd like to have the section numbered as follow
"ChapterNumber.SectionNumber"... so the question is how do
I get the ChapterNumber when i'm processing a section element?
In other words, I'd like to get the position() of the parent
of a given node... 

Thanks.

Xavier Defrang
Perceval R&D Team
xavier@xxxxxxxxxxxx

-------------------------------------------------
 Perceval Technologies SA/NV  Tel: +32-2-6409194
 Rue Tenbosch, 9              Fax: +32-2-6403154
 B-1000 Brussels         http://www.perceval.net
 BELGIUM                       info@xxxxxxxxxxxx
-------------------------------------------------


 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.