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

RE: Cross-reference not returning correct node

Subject: RE: Cross-reference not returning correct node
From: "Debbie Evans" <devans@xxxxxxxxx>
Date: Sat, 13 Aug 2005 14:03:48 -0400
maria leggett
-- this worked perfectly. Bless you!

Deb


If the cross-referenced table in your test case happens to be the first
table with a title, you will get no output indeed. That's because the
current node is a table element. the 'xsl:number' will release it's
counting algorithm on every node preceding-or-self from the current node
(the title of the current table will thus not be counted). Since you
were really counting titles instead of titled tables, no result would be
obtained.

Try this:
<xsl:number count="table[.//title]" level="any" from="manual"/>

key: <xsl:key name="tableids" match="table[@id]" use="@id"/>

regards,
--
Joris Gillis (http://users.telenet.be/root-jg/me.html)
Ceterum censeo XML omnibus esse utendum


**********************************************************************
Confidentiality Notice
The information contained in this e-mail is confidential and intended for
use only by the person(s) or organization listed in the address. If you have
received this communication in error, please contact the sender at O'Neil &
Associates, Inc., immediately. Any copying, dissemination, or distribution
of this communication, other than by the intended recipient, is strictly
prohibited.
**********************************************************************

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.