← Prev in month ← Prev in thread
Next in thread → Next in month →

odf 1.1 para 4.1.3. Mismatch, spec to schema

From
Dave Pawson <>
Date
2008-07-10T12:11:18+00:00
ID
Thread
odf 1.1 para 4.1.3. Mismatch, spec to schema
A text:style-name attribute references a paragraph style, while a
text:cond-style-name attribute references a conditional-style, that
is, a style that contains conditions and maps to other styles (see
section 14.1.1). If a conditional style is applied to a paragraph, the
text:style-name attribute contains the name of the style that was the
result of the conditional style evaluation, while the conditional
style name itself is the value of the text:cond-style-name  attribute.
This XML structure simplifies [XSLT] transformations because XSLT only
has to acknowledge the conditional style if the formatting attributes
are relevant. The referenced style can be a common style or an
automatic style.


1. Assuming this to be a requirement (no 'shall' or 'must' present).
2. Rationale does not belong in normative text. (This XML structure
simplifies  .....)
3. For this to work, the presence of text:cond-style-name should
mandate the presence of text:style-name. The schema does not require
this
as a co-occurrence constraint.

Note it also depends on the prior paragraph, hence is not stand-alone.

regards

-- 
Dave Pawson
XSLT XSL-FO FAQ.
http://www.dpawson.co.uk
← Prev in month ← Prev in thread
Next in thread → Next in month →