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

Re: Attempt to Select from the Top of Document No Work

Subject: Re: Attempt to Select from the Top of Document No Worky
From: "W. Eliot Kimber" <eliot@xxxxxxxxxx>
Date: Mon, 08 Dec 2003 15:40:13 -0600
Re:  Attempt to Select from the Top of Document No Work
Kyle Partridge wrote:


Maybe the reason is that // doesn't work inside of my existing query (ws:p), but what can I do to get the values I'm looking for?

It would probably be cleaner and easier to use a key table to access each of the styles, e.g.:


<xsl:key name="styles" use="name" match="textStyle"/>

You can then dereference the style with a simple key() function:

<xsl:for-each select="key('styles', string(@style)">
  ...
</xsl:for-each>

Of course, you should really do check to make sure the style reference is good before blindly processing it.

Cheers,

Eliot

--
W. Eliot Kimber
Innodata Isogen
eliot@xxxxxxxxxx
www.isogen.com


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.