Schematron and XPath 2.0 expressions?
Having trouble installing Oxygen? Got a bug to report? Post it all here.
-
- Posts: 12
- Joined: Tue Nov 01, 2011 12:24 pm
Schematron and XPath 2.0 expressions?
Hi again,
Another question relating to Schematron. I have a Schematron schema where I need to use XPath 2.0 in the assert test expressions. In Oxygen Preferences, there is an option under Schematron allowing me to indicate whether to use XPath 1.0 or XPath 2.0. I select the latter, however, when I validate my instance documents, I get an error saying:
"E [ISO Schematron] Failed to compile stylesheet. 1 error detected."
"W [ISO Schematron] Error in expression every $n in tokenize(current(), '\s+') satisfies $n=document('subdir/data.xml')/gc:CodeList/SimpleCodeList/Row/Value[@ColumnRef='name']/SimpleValue: Unexpected token $ beyond end of expression"
If I use XProch and p:validate-with-schematron with same schema, there is no problem/error.
Thanks in advance!
Mats
Another question relating to Schematron. I have a Schematron schema where I need to use XPath 2.0 in the assert test expressions. In Oxygen Preferences, there is an option under Schematron allowing me to indicate whether to use XPath 1.0 or XPath 2.0. I select the latter, however, when I validate my instance documents, I get an error saying:
"E [ISO Schematron] Failed to compile stylesheet. 1 error detected."
"W [ISO Schematron] Error in expression every $n in tokenize(current(), '\s+') satisfies $n=document('subdir/data.xml')/gc:CodeList/SimpleCodeList/Row/Value[@ColumnRef='name']/SimpleValue: Unexpected token $ beyond end of expression"
If I use XProch and p:validate-with-schematron with same schema, there is no problem/error.
Thanks in advance!
Mats
-
- Posts: 2879
- Joined: Tue May 17, 2005 4:01 pm
Re: Schematron and XPath 2.0 expressions?
Hello,
To make this work, you have to also specify on the schema root the attribute:
queryBinding="xslt2"
If that's not the problem, please send us the Schematron file (or a sample) to: support AT oxygenxml DOT com.
Regards,
Adrian
To make this work, you have to also specify on the schema root the attribute:
queryBinding="xslt2"
If that's not the problem, please send us the Schematron file (or a sample) to: support AT oxygenxml DOT com.
Regards,
Adrian
Adrian Buza
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ Artificial Intelligence (AI Positron Assistant add-on)
- ↳ 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