[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
RE: XSLT: conditional output, or l10n issues
Subject: RE: XSLT: conditional output, or l10n issues From: Kay Michael <Michael.Kay@xxxxxxx> Date: Wed, 19 May 1999 17:15:48 +0100 |
Or, to express it the > other way round, it needs to include all langflow elements where > xml:lang isn't specified at all, as well as all langflow elements > where xml:lang="en" is specified. > > How would I express this in XSLT? The problem is of course that lang("en") returns true for elements where xml:lang="en", false where xml:lang="de", and false where it is unspecified. I can't think of any way of doing the test other than the unweildy: <xsl:if test="lang('en') or not(from-ancestor-or-self(*)[@xml-lang])"> In SAXON 4.2 you could write <xsl:if test="^xml:lang='en' or not(^xml:lang)"> Mike Kay XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: XSLT: conditional output, or l1, David Carlisle | Thread | Re: XSLT: conditional output, or l1, Kai . Grossjohann |
Re: XSLT: conditional output, or l1, David Carlisle | Date | Re: XSLT: conditional output, or l1, Kai . Grossjohann |
Month |