W3C home > Mailing lists > Public > xproc-dev@w3.org > November 2010

RE: XProc document templates - a question about undeclared variables

From: <vojtech.toman@emc.com>
Date: Mon, 8 Nov 2010 09:06:05 -0500
Message-ID: <997C307BEB90984EBE935699389EC41C02A74A01@CORPUSMX70C.corp.emc.com>
To: <xproc-dev@w3.org>
> Does the document template step only look for those expressions it has
matching
> parameters for or does it try to evaluate all expressions in curly
braces. Would it
> throw an exception if it didn't find a matching parameter? I guess the
same situation
> would occur in XSLT document templates too where you've used AVTs.

It will try to evaluate all expression in curly braces. If any of them
cannot be evaluated (because it is an invalid XPath expression, because
of references to unbound variables, etc.), you will get an error.

Regards,
Vojtech


--
Vojtech Toman
Consultant Software Engineer
EMC | Information Intelligence Group
vojtech.toman@emc.com
http://developer.emc.com/xmltech
Received on Monday, 8 November 2010 14:10:17 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 8 November 2010 14:10:17 GMT