Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


RE: [xsl] alternative to repeatedly walking the ancestor axis in 1.0

From: "Michael Kay" <mike@------------>
To:
Date: 8/2/2008 8:34:00 AM
> Out of interest, does xml:lang annotate the input tree, or does the
> lang() function walk the ancestor axis behind the scenes?  Or 
> is it all implementation dependent?

It's implementation-dependent, of course.

Saxon walks the ancestor axis when you use the lang() function. I think it's
used too rarely to be worth optimizing.

You also asked:

>why does xml:lang exist

And I think the answer is that the I18N lobby is sufficiently powerful in
W3C that they overrode the architectural arguments for putting this kind of
thing in a different layer; XML should be completely neutral as to the
meaning of element and attribute names, and such things should be defined
only in application-specific vocabularies. 

(But it's true, of course, that xml:lang is permitted only where the DTD
says it is permitted, so in that sense it's not part of core XML, it's just
available for inclusion in an application vocabulary if you choose to
include it.)

Michael Kay
http://www.saxonica.com/


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent