Skip to content

Commit e64bced

Browse files
committed
Fix #2257.
1 parent a581874 commit e64bced

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

P5/Source/Specs/att.datable.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,9 @@ $Id$
4343
<constraintSpec ident="calendar" scheme="schematron">
4444
<constraint>
4545
<sch:rule context="tei:*[@calendar]">
46-
<sch:assert test="string-length(.) gt 0"> @calendar indicates one or more systems or calendars to
47-
which the date represented by the content of this element belongs, but this
48-
<sch:name/> element has no textual content.</sch:assert>
46+
<sch:assert test="string-length( normalize-space(.) ) gt 0"> @calendar indicates one or more
47+
systems or calendars to which the date represented by the content of this element belongs,
48+
but this <sch:name/> element has no textual content.</sch:assert>
4949
</sch:rule>
5050
</constraint>
5151
</constraintSpec>
@@ -146,4 +146,4 @@ $Id$
146146
<ptr target="#CONADA"/>
147147
<ptr target="#NDDATE"/>
148148
</listRef>
149-
</classSpec>
149+
</classSpec>

P5/Test/expected-results/detest_xml_schematron.log

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
@calendar indicates one or more systems or calendars to
2-
which the date represented by the content of this element belongs, but this
3-
date element has no textual content. (string-length(.) gt 0)
1+
@calendar indicates one or more
2+
systems or calendars to which the date represented by the content of this element belongs,
3+
but this date element has no textual content. (string-length( normalize-space(.) ) gt 0)
44
The abbr element should not be categorized in detail with @subtype unless also categorized in general with @type (@type)
55
The div element should not be categorized in detail with @subtype unless also categorized in general with @type (@type)
66

0 commit comments

Comments
 (0)