xml editor

Supported platforms

Compatible with Windows7 & Mac OS X Snow Leopard

Ready for data server software
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

[xsl] match multiple values for an attribute


Subject: [xsl] match multiple values for an attribute
From: Jeff Sese <jsese@xxxxxxxxxxxx>
Date: Wed, 30 Aug 2006 13:42:15 +0800

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
Keywords
XML Editor | XML Author | WYSIWYG Editors | Schema Editor | XSD Documentation | XSL/XSLT Editor | XQuery | XML Databases | SVN Client
© 2002-2011 SyncRO Soft Ltd. All rights reserved. | Sitemap | Privacy Policy | This website was created & generated with <oXygen/>®XML Editor