xproc / 1.0-specification

The 1.0 XProc specification and now abandoned drafts of a 2.0 XML specification
12 stars 6 forks source link

Editorial: reword the definition of the value templates syntax ? #140

Closed rdeltour closed 9 years ago

rdeltour commented 9 years ago

Section 2.10 Value Templates says:

It is a static error (err:XS1003) if an unescaped left curly bracket appears in a fixed part of a value template without a matching right curly bracket or if an unescaped right curly bracket appears in the fixed part of a value template.

while it earlier defined the value template as an "alternating sequence of fixed parts and variable parts".

Strictly speaking, a left curly bracket matched by a right curly bracket makes a variable part and as such can never "appear" in the fixed part.

Better wording (?) might be:

It is a static error (err:XS1003) if an unescaped left curly bracket appears in a value template without a matching right curly bracket or if an unescaped right curly bracket appears in the fixed part of a value template.