Subject: Re: element in most preferred language expression?
From: Wendell Piez <wapiez@xxxxxxxxxxxxxxxx>
Date: Wed, 28 May 2008 17:31:20 -0400
|
At 04:47 AM 5/28/2008, Florent wrote:
> title[lang($preferredLanguage)] |
>
title[lang($2ndPreferredLanguage)][not(title[lang($preferredLanguage)])]
I am a bit intrigued by this expression. I guess you mean
"not(self::title[..." (note the self axis)?
Darn, my average is slipping.
How about:
title[lang($2ndPreferredLanguage)][not(../title[lang($preferredLanguage)])]
That is, the title in the second language when no title is available
in the first language.
I'll be the first to agree it's, em, somewhat baroque. But it's what
we have in 1.0 (unless you prefer Romanesque xsl:choosing).
Cheers,
Wendell
======================================================================
Wendell Piez mailto:wapiez@xxxxxxxxxxxxxxxx
Mulberry Technologies, Inc. http://www.mulberrytech.com
17 West Jefferson Street Direct Phone: 301/315-9635
Suite 207 Phone: 301/315-9631
Rockville, MD 20850 Fax: 301/315-8285
----------------------------------------------------------------------
Mulberry Technologies: A Consultancy Specializing in SGML and XML
======================================================================
|