Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: [xsl] Re: Language-specific output

From: David Carlisle <davidc@--------->
To:
Date: 2/3/2006 12:49:00 PM
> David's idea looks difficult to implement
yes I thought so:-)

> otherwise a main stylesheet 
> will be reported valid even if for instance it does not define a 
> variable that it uses.

I suggested that any inferred variables would generate a warning not
just silently accept, but anyway I think the main document idea is
probably more generally useful and is used to good effect in other
systems I've used.  see for this example documentation of auc tex mode
master-file feature.
http://www.ifi.uni-klu.ac.at/Public/Documentation/auc-tex/auc-tex_6.html
(I was trying to remember when I first came across that, 1980's I think:-)



> 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).
yes this is certainly true.

The feature I suggested is less useful as a general mechanism to enable
correct autocompletion and other editor features, but it would be nice
sometimes to have some mechanism of determining automatically the
dependencies that a module has. Just a report saying this module needs
to be included into a context that defines these 3 variables and these 2
named templates would be a useful thing to be able to document about
a module (and quite hard to find out by hand if its not documented, other
than by trial and error, adding variables until it works). Of course if
the editor would essentially have to do just that, keep recompiling the
module after adding a declaration, it is probably too hard/slow to be
useful as an automatic tool. I was really just wondering if the
debugging hooks into the xslt engine internals could be persuaded to let
the xslt engine carry on (with a warning) rather than stop on an
undefined variable (giving it some default declaration) so as to pick up
all undefined constructs in a single pass.


David

________________________________________________________________________
This e-mail has been scanned for all viruses by Star. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________


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