Re: Document template test 10

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 UTC