Schematron Validation. Unknown system function: matches
Oxygen general issues.
-
- Posts: 21
- Joined: Wed Jun 29, 2022 8:49 am
Schematron Validation. Unknown system function: matches
Hi Team,
i configured custom xml schema associated for xml. under validation tab i create new entry with custom schamatron file. While running validation i got below errors. schmatron validation is using xerces engine. I tried with default engine but still the same error.
Rule: <iso:rule context="jd:footnote.reference">
<iso:assert test="@refid = //jd:footnote/@ID">{ES1042} Footnote.reference exists without corresponding footnote.The footnoteref element with ID <iso:value-of select="@refid"/> does not correspond to a footnote</iso:assert>
<iso:report test="matches(., '\s')">{WS1042} Footnote.reference contains a space</iso:report>
</iso:rule>
Error: "Error in expression matches(., '\s'): Unknown system function: matches"
<!-- .. is used to get the parent text including the text in specified context -->
<iso:let name="preceding" value="string-join(preceding-sibling::* | preceding-sibling::text(), '')" />
<iso:let name="following" value="string-join(following-sibling::* | following-sibling::text(), '')" />
Error: "Error in expression string-join (preceding-sibling::* | preceding-sibling::text (), ''): Unknown system function: string-join"
i configured custom xml schema associated for xml. under validation tab i create new entry with custom schamatron file. While running validation i got below errors. schmatron validation is using xerces engine. I tried with default engine but still the same error.
Rule: <iso:rule context="jd:footnote.reference">
<iso:assert test="@refid = //jd:footnote/@ID">{ES1042} Footnote.reference exists without corresponding footnote.The footnoteref element with ID <iso:value-of select="@refid"/> does not correspond to a footnote</iso:assert>
<iso:report test="matches(., '\s')">{WS1042} Footnote.reference contains a space</iso:report>
</iso:rule>
Error: "Error in expression matches(., '\s'): Unknown system function: matches"
Rule 1.png
Rule: <iso:rule context="//jd:csc|//jd:bold|//jd:ital|//jd:underscore"><!-- .. is used to get the parent text including the text in specified context -->
<iso:let name="preceding" value="string-join(preceding-sibling::* | preceding-sibling::text(), '')" />
<iso:let name="following" value="string-join(following-sibling::* | following-sibling::text(), '')" />
Error: "Error in expression string-join (preceding-sibling::* | preceding-sibling::text (), ''): Unknown system function: string-join"
Rule 2.png
You do not have the required permissions to view the files attached to this post.
-
- Posts: 388
- Joined: Thu Jul 01, 2004 12:29 pm
Re: Schematron Validation. Unknown system function: matches
Hello,
Unfortunately I cannot reproduce the behavior that you describe. I tested with <oXygen/> XML Editor 25.0, build 2022110706. What version of Oxygen do you use?
Maybe you have set some options that affects the validation. I recommend you to export the current Oxygen options and the reset them and try again the validation.
You can also send us some sample files XML and Schematron, in order to reproduce the issue, on our support email address suppport@oxygenxml.com.
Best Regards,
Octavian
Unfortunately I cannot reproduce the behavior that you describe. I tested with <oXygen/> XML Editor 25.0, build 2022110706. What version of Oxygen do you use?
Maybe you have set some options that affects the validation. I recommend you to export the current Oxygen options and the reset them and try again the validation.
You can also send us some sample files XML and Schematron, in order to reproduce the issue, on our support email address suppport@oxygenxml.com.
Best Regards,
Octavian
Octavian Nadolu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
-
- Posts: 21
- Joined: Wed Jun 29, 2022 8:49 am
Re: Schematron Validation. Unknown system function: matches
Hi Team,
I figured the root cause. my schematron file was missing queryBinding attribute on root node. adding queryBinding="xslt2" to <iso:schema> tag fixed th e issue.
I figured the root cause. my schematron file was missing queryBinding attribute on root node. adding queryBinding="xslt2" to <iso:schema> tag fixed th e issue.
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ SDK-API, Frameworks - Document Types
- ↳ DocBook
- ↳ TEI
- ↳ XHTML
- ↳ Other Issues
- Oxygen XML Web Author
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Content Fusion
- ↳ Feature Request
- ↳ Common Problems
- Oxygen JSON Editor
- ↳ Feature Request
- ↳ Common Problems
- Oxygen PDF Chemistry
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Feedback
- ↳ Feature Request
- ↳ Common Problems
- Oxygen XML WebHelp
- ↳ Feature Request
- ↳ Common Problems
- XML
- ↳ General XML Questions
- ↳ XSLT and FOP
- ↳ XML Schemas
- ↳ XQuery
- NVDL
- ↳ General NVDL Issues
- ↳ oNVDL Related Issues
- XML Services Market
- ↳ Offer a Service