Subject: Re: [xsl] Re: element in most preferred language expression? From: Wendell Piez <wapiez@xxxxxxxxxxxxxxxx> Date: Tue, 27 May 2008 18:27:46 -0400 |
> In addition to Ken's other helpful remarks: > >>What is the closest XPath expression which could get the value of an > >>element in a most preferred language? > > > > "title[lang($preferredLanguage)]"
Thank you for pointing out the lang() function, however the heart of my problem is that an element (<title>) may or may not be available in $preferredLanguage, in which case I need to fallback to $2ndPrefferedLanguage, instead of returning empty.
What I am looking for is an XPath expression, suitable for sticking in the string() function, to get the most preferred non-null element.
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 ======================================================================
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] Re: element in most preferred, Jack Bates | Thread | RE: [xsl] Getting average, Chaudhary, Harsh |
[xsl] starts-with on more than one , Ronnie Royston | Date | Re: [xsl] starts-with on more than , David Carlisle |
Month |