- From: Roland Gülle <roland@7val.com>
- Date: Tue, 15 May 2007 14:54:20 +0200
- To: "Jo Rabin" <jrabin@mtld.mobi>
- Cc: <public-mobileok-checker@w3.org>
> What I had in mind was transforming the error string dependent on a
> choice of output language. Why would XINCLUDE work better than
> xsl:include?
The xsl:include is only allowed as a top-level element. We can use
the XINCLUDE when the error occurs:
-----------
<xsl:variable name="language">en</xsl:variable>
<xsl:if test="false()">
<xi:include href="{$language}.xml" parse="xml" xpointer="element
(errors/nr1)">
<xi:fallback>error nr. 1</xi:fallback>
</xi:include>
</xsl:if>
--------------
roland
Received on Tuesday, 15 May 2007 12:54:36 UTC