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

match multiple values for an attribute

Subject: match multiple values for an attribute
From: Jeff Sese <jsese@xxxxxxxxxxxx>
Date: Wed, 30 Aug 2006 13:42:15 +0800
match with multiple lookup values
I have an xml with elements like these:

<par @style="font-family: some.font.name; some.more.string">some text</par>

and i have an variable in my xsl file like this:

<xsl:variable name="fonts" as="xs:string+" select="('font1','font2')"/>

i want to match the text nodes that are child of an element with a style attribute that matches any of the fonts in $fonts. What is the xpath expression that can do that?

Thanks,
-- Jeff

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-2007 All Rights Reserved.