Skip to content
Snippets Groups Projects
Commit 7b8b7425 authored by Martin de la Iglesia's avatar Martin de la Iglesia
Browse files

XPath bei Leerzeichen-Check verbessert

parent b32ffdf2
No related branches found
No related tags found
No related merge requests found
...@@ -498,7 +498,7 @@ ...@@ -498,7 +498,7 @@
</rng:oneOrMore> </rng:oneOrMore>
</content> </content>
<constraintSpec scheme="schematron" ident="regex"> <constraintSpec scheme="schematron" ident="regex">
<constraint> <sch:pattern><sch:rule context="tei:seg[text() ne '']"><sch:assert test="matches(.,'^\S[\s\S]+\S$')">darf nicht mit Leerzeichen beginnen oder enden</sch:assert></sch:rule></sch:pattern> </constraint> <constraint> <sch:pattern><sch:rule context="tei:seg[text()[1] ne '']"><sch:assert test="matches(text()[1],'^\S[\s\S]+\S$')">darf nicht mit Leerzeichen beginnen oder enden</sch:assert></sch:rule></sch:pattern> </constraint>
</constraintSpec> </constraintSpec>
</elementSpec> </elementSpec>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment