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]

RE: [xsl] Selecting a node based on two sub-element values


Subject: RE: [xsl] Selecting a node based on two sub-element values
From: Kevin Rodgers <kevin.rodgers@xxxxxxx>
Date: Tue, 15 Feb 2005 08:48:35 -0700

Michael Kay writes:
> > 
> > <xsl:if test="*[1]/VALUE/text() = 'AA' 
> 
> It's rarely a good idea to use /text() in this kind of comparison: better to
> compare the value of the element itself:
> 
> test="*[1]/VALUE = 'AA'

Can I then infer that I should refactor this test expression

	org_list/org_code[@type='APPR' and text()='ANSI']

to

	org_list[org_code@type='APPR' and org_code='ANSI']

Thanks,
-- 
Kevin Rodgers


Current Thread
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