W3C home > Mailing lists > Public > public-xml-processing-model-wg@w3.org > November 2010

Re: Document template test 10

From: Norman Walsh <ndw@nwalsh.com>
Date: Thu, 18 Nov 2010 11:03:41 -0500
To: public-xml-processing-model-wg@w3.org
Message-ID: <m24obezkiq.fsf@nwalsh.com>
Innovimax W3C <innovimax+w3c@gmail.com> writes:

> Normal mode
> 1) IF you parse {{ then output {
> 2) IF you parse }} then output }
> 3) IF you parse { then switch to 'xpath mode'
> 4) IF you parse } then it's an error
> 5) IF you parse anything else output it as is
>
> Xpath mode
> 1) IF you parse {{ then output {
> 2) IF you parse }} then output }
> 4) IF you parse { then it's an error
> 3) IF you parse } then switch to 'normal mode' and evaluate the string
> in the buffer as the xpath expression
> 5) IF you parse anything else output it as is

I must be slow. I'm not seeing how that's different than option 2.

>> The heart of test 10 is this expression:
>>
>>   {{{/doc/p}}}

Which is an error per the rules above.

>> The problem I have is this case:
>>
>>  { concat('{{', $foo, '}}') }

And that's ok.

                                        Be seeing you,
                                          norm

-- 
Norman Walsh
Lead Engineer
MarkLogic Corporation
www.marklogic.com

Received on Thursday, 18 November 2010 16:04:17 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Thursday, 18 November 2010 16:04:18 GMT