Subject: Re: Was: [xsl] mode and moved to Namespaces From: ac <ac@xxxxxxxxxxxxx> Date: Mon, 18 Apr 2011 21:52:23 -0400 |
Regards, ac
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
ac wrote:
Overall, it is a trade of, but it seems that the namespace approach is not only valid, it is more efficient, possibly by about 400% in terms of space, in the given example, implying that it may be worth considering and supporting. The validity and support of version 1 was not questioned or at stake. The main issues was the support for version 2, as well as the usefulness of namespaces, and the fact that 80 namespaces in a stylesheet can be quite natural and not so out of bounds or silly.Putting performance aside for a while it seems as a really poor design to require change of schema and stylesheet for adding each new language. This goes completely against good software engineering design.
Space could be saved by another means for example by storing each localization in a separate file and loading them just on demand. For example last year DocBook stylesheets changed from using one large single localization file to dynamic loading of smaller per language files and speedup was from 30-300% depending on document size and XSLT engine used. Also about 10 MB of memory was saved during the transformation.
Weren't namespaces designed to be used? If so, why avoid them at all costs, especially in cases of natural conceptual namespaces?There is nothing wrong with using namespaces, but, with respect, your example of using namespaces is simply wrong.
Jirka
- -- - ------------------------------------------------------------------ Jirka Kosek e-mail: jirka@xxxxxxxx http://xmlguru.cz - ------------------------------------------------------------------ Professional XML consulting and training services DocBook customization, custom XSLT/XSL-FO document processing - ------------------------------------------------------------------ OASIS DocBook TC member, W3C Invited Expert, ISO JTC1/SC34 member - ------------------------------------------------------------------ -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAk2so8YACgkQzwmSw7n0dR6/aACfU2uWCc8holTZPQkbLBFuwVYr cO8AmgJSyK7Vr8O0SxKWQpbFqDRFNfb2 =/1uR -----END PGP SIGNATURE-----
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: Was: [xsl] mode and moved to Na, Jirka Kosek | Thread | Re: Was: [xsl] mode and moved to Na, Michel Hendriksen |
Re: Was: [xsl] mode and moved to Na, Jirka Kosek | Date | Re: Was: [xsl] mode and moved to Na, Michel Hendriksen |
Month |