[Y-devel] comment: XML interface description
grayrest grayrest at komodo.nique.net
Thu Feb 26 03:51:25 GMT 2004
Iain Jackson wrote:
> Can't you use Style Sheets with XML to do something similar, send the
> XML for the interface and the style sheet specifying the localised info.
There are actually two ways to style CSS, XSLT and CSS. Both are
occasionally called stylesheets.
CSS is only appearance, so you can't do what you're proposing.
XSLT allows arbitrary mapping from any XML tree to any XML tree. It
would, therefore, also allow what you're proposing.
The other solution in XML is to define each string as an XML entity and
use define the entities for each language. When the parser goes through,
it picks the appropriate entity set for the lanugage and substitutes the
localized string for the entity. This is how mozilla handles i18n with XUL.
Karl
More information about the Y-devel mailing list
2026 © www.Y-Windows.Org - All Rights Reserved