Forums » Saxon/C Help and Discussions »
Error: Unable to read unicodeBlocks.xml file
Added by Paul Greve over 1 year ago
I'm getting the following error message when validating an XML file using x86_64 SaxonC 12.2 on CentOS9.
Unable to read unicodeBlocks.xml file
The offending schema file line is:
<xs:pattern value="[\p{IsBasicLatin}-[\p{Cc}]]{1,64}"/>
I don't get this error message when validating the same file against the same schemas using SaoxnJ.
Am I missing some resources that should accompany SaxonC?
Replies (5)
Please register to reply
RE: Error: Unable to read unicodeBlocks.xml file - Added by Martin Honnen over 1 year ago
Problem a build problem of SaxonC similar to https://saxonica.plan.io/issues/5850.
RE: Error: Unable to read unicodeBlocks.xml file - Added by Martin Honnen over 1 year ago
Probably the file unicodeBlocks.xml
should be referenced in https://saxonica.plan.io/projects/saxonmirrorhe/repository/he/revisions/he_mirror_saxon_12_2/entry/src/graalvm/META-INF/native-image/resource-config.json.
RE: Error: Unable to read unicodeBlocks.xml file - Added by Martin Honnen over 1 year ago
O'Neil, note that this also affects SaxonC 12.2 HE and basic regular expression matching in XSLT/XPath/XQuery e.g.
<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="3.0"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
exclude-result-prefixes="#all"
expand-text="yes">
<xsl:template name="xsl:initial-template">
<test>{matches('abcdef', '^\p{IsBasicLatin}+$')}</test>
</xsl:template>
</xsl:stylesheet>
fails with
FORX0002 Syntax error at char 4 in regular expression: Unknown Unicode block: BasicLatin
at template xsl:initial-template on line 8 column 45 of test-basic-latin-block1.xsl:
Syntax error at char 4 in regular expression: Unknown Unicode block: BasicLatin
for SaxonC 12.2 while it works fine with Saxon 12.2 J
RE: Error: Unable to read unicodeBlocks.xml file - Added by O'Neil Delpratt over 1 year ago
Thanks for reporting this issue and Thanks Martin for your comment. I have created the following bug issue to keep track of the fix: #6075
RE: Error: Unable to read unicodeBlocks.xml file - Added by Paul Greve over 1 year ago
Hi Guys,
Thanks for the quick response on this. One item of note. Our target architecture is aarch64. I assume the aarch64 build will have the same issue as the x86_64 build. I started by creating a sample program on the x86_64 to start getting familiar with the SaxonC API but will be moving to the aarch64 build.
Paul
Please register to reply