RE: Namespace context for XPaths in XProc

Mio,

It is true that the XProc processor needs to evaluate p:namespaces dynamically (when it evaluates p:variable, p:with-option, or p:with-param), but I think you are mixing the XPath context and the “XProc context” together. They are two separate things. What happens is when (while evaluating a pipeline) the XProc processor needs to evaluate an XPath expression, it prepares the static XPath context *dynamically* (from the XProc perspective). This may involve processing p:namespace elements (and possibly evaluating other XPath expressions). After the processor has created the static XPath context, it can execute the XPath expression.

Vojtech

--
Vojtech Toman
Consultant Software Engineer
EMC | Information Intelligence Group
vojtech.toman@emc.com
http://developer.emc.com/xmltech


From: temp [mailto:temp44@szm.sk]
Sent: Tuesday, October 16, 2012 10:40 AM
To: xproc-dev@w3.org
Subject: Re: Namespace context for XPaths in XProc

Anybody?

----- Originalna sprava prijata http://szm.com -----
Od: temp
Komu:
Poslane:Fri, 28 Sep 2012 12:57:33 +0200
Predmet:Namespace context for XPaths in XProc

Hi,
I have a little problem regarding XPaths according to the XProc spec.
According to the XPath spec, the namespace context for an XPath expression is part of the static context.
However, it seems to me that according to the XProc spec, there is a need to have the namespace context as part of the dynamic context, in the case p:namespaces is used in conjunction with the @element attribute.
What are your thoughts and opinions on this?
How would you handle this case in an implementation so that the static context does not have to be recalculated upon every invoke of the pipeline?
Thanks
Mio


=== reklama ======================================
http://mail.szm.com - e-mail a priestor na www stranku zadarmo
http://webhosting.szm.com - domény a webhosting za najnižšie ceny


=== reklama ======================================
http://mail.szm.com - e-mail a priestor na www stranku zadarmo
http://webhosting.szm.com - domény a webhosting za najnižšie ceny

Received on Tuesday, 16 October 2012 09:08:44 UTC