[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

Re: [xsl] xpath problem


Subject: Re: [xsl] xpath problem
From: Jan Limpens <jan.limpens@xxxxxxxxx>
Date: Sun, 24 Oct 2004 00:10:59 -0200

anton, you're completely right, but I think my problem actually has to
do with the namespace...
(even queries without the lang() stuff fail as long as there is a
namespace definition...)

thanks!
--
jan


On Sat, 23 Oct 2004 22:28:13 +0200, Anton Triest <anton@xxxxxxxx> wrote:
> 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
> 
> 


-- 
Jan
http://www.limpens.com

Otakoo Saloon Cartoon - newest episode at http://limpens.com/oscredirect


Current Thread