xsl-list
[Top] [All Lists]

Re: xpath problem

2004-10-23 13:28:13
Jan Limpens wrote:

can anypne tell me why this query
//Document[(_at_)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[(_at_)href='Publications.aspx']/Information[(_at_)lang='de']/Title

HTH,
Anton



<Prev in Thread] Current Thread [Next in Thread>