XSDtoRNG icon indicating copy to clipboard operation
XSDtoRNG copied to clipboard

Reference to undefined pattern comment

Open greenrd opened this issue 9 years ago • 2 comments

I tried converting http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.1.xsd to rnc using this stylesheet and then trang. However, when I tried to use the .rnc file in nxml-mode in emacs, it said: nxml-display-file-parse-error: Reference to undefined pattern comment.

My XSD is a bit rusty but it looks to me like comment is defined in the .xsd file, but is not defined in the .rng or .rnc files.

greenrd avatar Jan 13 '16 14:01 greenrd

I managed to workaround this by specifying the start parameter.

greenrd avatar Jan 13 '16 15:01 greenrd

I was able to get this schema to work first by applying greenrd's sed script to the xsd file, renaming it with 'mod', then using xsltproc --stringparam start databaseChangeLog XSDtoRNG.xsl dbchangelog-3.1.mod.xsd > dbchangelog-3.1.rng. I then converted it to rnc with trang.

dwhoman avatar Jul 27 '18 17:07 dwhoman