- From: Innovimax W3C <innovimax+w3c@gmail.com>
- Date: Wed, 23 May 2012 14:54:54 +0200
- To: Norman Walsh <ndw@nwalsh.com>
- Cc: public-xml-processing-model-wg@w3.org
On Wed, May 23, 2012 at 2:31 PM, Norman Walsh <ndw@nwalsh.com> wrote:
> Innovimax W3C <innovimax+w3c@gmail.com> writes:
>>>> 2) What is the context of the test : the current sequence of document ?
>>>
>>> Yes. For all expressions evaluated (however we decide to do that) the
>>> context item is the document that is being logged.
>>
>> Heum... that's where it can be tricky. What if we log a sequence of document ?
>
> I think the tests apply to each document in the sequence in turn. I'd
> hope to treat a sequence of documents just like a single document that
> happened to be logged in a loop.
Ok hence it may means that we need two different context
A Global One with no context (or the context of the sequence), and
local one that will be evaluated on each document of the sequence
So we may end up with
<p:log
port = NCName
href? = anyURI
display?= XPathExpression
>
(p:report)*
</p:log>
<p:report
test? = XPathExpression
context? = { "global" | "local" }> template-content</p:report>
Mohamed
--
Innovimax SARL
Consulting, Training & XML Development
9, impasse des Orteaux
75020 Paris
Tel : +33 9 52 475787
Fax : +33 1 4356 1746
http://www.innovimax.fr
RCS Paris 488.018.631
SARL au capital de 10.000 €
Received on Wednesday, 23 May 2012 12:55:28 UTC