Re: [xsl] Re: Language-specific output

Subject: Re: [xsl] Re: Language-specific output
From: Dimitre Novatchev <dnovatchev@xxxxxxxxx>
Date: Sat, 4 Feb 2006 13:41:58 +1100
On 2/4/06, Michael Kay <mike@xxxxxxxxxxxx> wrote:
>
> >
> > I am really liking the validation-in-the-background feature of the
> > new oXygen. In particular, I'm liking the way syntactically malformed
> > XPath expressions (or pseudo-XPath since they're malformed) just
> > "light up" on their own, rather than just lurking till runtime before
> > I discover I have one too few closing parentheses.
>
> Perhaps a clearer distinction is needed between what compiler folks call
> syntactic and semantic errors: in particular, referring to
> functions/variables/templates/types that don't exist (yet) is classified as
> a semantic error. Since in XSLT all of these can be forwards references
> anyway, it's not just references to things declared in other modules that
> are relevant, but forwards references to things in the same module.


As for other missing things in the language:

     <pragma:external name="varName" as="type"/>

or
    <xsl:variable ...   pragma:external="yes"/>

Where pragma may be associated to:

     "http://saxon.sf.net/";

or

     "http://exslt.org/modular-stylesheets";


--
Cheers,
Dimitre Novatchev
---------------------------------------
To avoid situations in which you might make mistakes may be the
biggest mistake of all.

Current Thread