Re: [xsl] xpath problem

Subject: Re: [xsl] xpath problem
From: Anton Triest <anton@xxxxxxxx>
Date: Sat, 23 Oct 2004 22:28:13 +0200
Jan Limpens wrote:

can anypne tell me why this query
//Document[@href='Publications.aspx']/Information[lang('de')]/Title

yields no results on this document

The lang() function checks the input for an xml:lang, not a lang attribute
so you can either use xml:lang in your input:

 <Document href="Publications.aspx">
   <Information xml:lang="de">

or leave the lang attribute as it is but test it like this:

//Document[@href='Publications.aspx']/Information[@lang='de']/Title

HTH,
Anton

Current Thread