Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: [xsl] Re: Language-specific output

From: George Cristian Bina <george@------------->
To:
Date: 2/3/2006 12:29:00 PM
Thanks Mike, David, Wendell and Dimitre for your feedback!



From Mike comment it is clear that automatic detection is not a good 
way to go as that takes away the control from the user and may use a 
different stylesheet than the actual main stylesheet.



David's idea looks difficult to implement and assuming that is 
implemented the user will need to specify whether the edited stylesheet 
is a main stylesheet or a module stylesheet, otherwise a main stylesheet 
will be reported valid even if for instance it does not define a 
variable that it uses.



If the user should specify the main stylesheet then the GUI should make 
that as painless as possible and Wendell's ideas look good to me.



I also tend to agree up to some point with Dimitre. That is the 
validation by creating a transformer may be a little too much for a 
module. But removing the validation completely and have that only when 
running a transformation I think it is not a good idea especially when 
automatic validation is taken into account.



A possibility to avoid the what Dimitre calls "overvalidation" will be 
to perform a validation of the XSLT document against an XSLT schema for 
instance. A possible implementation may be to allow the user to specify 
the level of validation he wants for stylesheets:

* validate against a schema

* using an XSLT processor



In any case the validation is not the only operation when having a 
master stylesheet specified will be good. Take for instance the content 
completion, when the user should see the available variables that he can 
use at some point or the names of the templates he can call. Maybe 
having a persistent mapping called "set main stylesheet" will be the 
best. That should be controlled from a set main stylesheet action that 
should act also on multiple files (so that the user can just select a 
folder for instance in the project and set the main stylesheet in one 
action for all the XSLT files in that folder). The stylesheets that have 
a main stylesheet set can be then marked as modules (by decorating their 
icon for instance) so that the user can easily see he is editing a module.

More, I think the need for having a main document property is more 
general and may be applied also to XQuery, Relax NG schemas and even to 
XML documents (consider a document that is included in the main document 
through an external entity reference and that may not be valid or 
wellformed by itself).



Best Regards,
George
---------------------------------------------------------------------
George Cristian Bina
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
www.---.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