← Prev in month ← Prev in thread

Errata in RelaxNG schema

From
Daniel Carrera <>
Date
2006-09-02T11:47:36+00:00
ID
1157197659.12507.199.camel@Agape-desktop
Thread
Errata in RelaxNG schema
Hello,

I just stumbled upon what I think is a minor error in the ODF RelaxNG.

File:
http://www.oasis-open.org/committees/download.php/12571/OpenDocument-schema-v1.0-os.rng

On lines 3838 and 3843 we have regular expressions with the pattern $?
which, AFAIK, is not a valid RE. Indeed, those $?'s cause an error when
you try to convert the spec to compact RelaxNG with trang.

These REs define the data contained in a spreadsheet cell (e.g.
$Sheet1.[B$4]), that's why there are $?'s in the RE.

I propose that we prefix the $ by a \ character in all instances.

Line 3838:
  Remove: ($?([^\. ']+|'[^']+'))?\.$?[A-Z]+$?[0-9]+
  Add:    (\$?([^\. ']+|'[^']+'))?\.\$?[A-Z]+\$?[0-9]+

Line 3843:
  Remove: ($?([^\. ']+|'[^']+'))?\.$?[A-Z]+$?[0-9]+(:($?([^\.
']+|'[^']+'))?\.$?[A-Z]+$?[0-9]+)?
  Add:    (\$?([^\. ']+|'[^']+'))?\.\$?[A-Z]+\$?[0-9]+(:(\$?([^\.
']+|'[^']+'))?\.\$?[A-Z]+\$?[0-9]+)?

Cheers,
Daniel.
-- 
"I AM in shape. Round IS a shape."
← Prev in month ← Prev in thread