command line validator supporting relax ng Schemas with embedded iso Schematron

青春壹個敷衍的年華 提交于 2019-12-31 03:08:08
问题 Are there any command line-validators that can cope with relax ng-Schemas with embedded iso schematron? I've got a couple of relax ng-schemas with embedded iso-schematron rules which I have to be able to validate on the command line. As it seems, jing, our usual validator, only works with schematron 1.5. Surfing the web, I haven't been able to find any validator supporting embedded iso schematron but I use oXygen as an xml editor and I can validate just fine from there. 回答1: You can use Jing,

Is there a Relaxer for .NET? Is Relaxer alive? Is RelaxNG viable? [closed]

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-30 06:12:03
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 2 years ago . I read about Relaxer, the thing that compiles .RNG to Java classes. BBut the website,, is dead. Q1: Is Relaxer alive? Is it real, does it work? Is it reasonable to generate Java classes from .RNG? Q2: Is there a Relaxer for .NET? Is there a tool that generates C# classes from RelaxNG

Detecting table element error in docbook 5.0 document

断了今生、忘了曾经 提交于 2019-12-25 08:29:37
问题 I did not have much luck to have a complete answer in my previous post. So I am trying yet again with a different approach. How would one detect the error in the following docbook article with table: $ cat article.xml <?xml version="1.0" encoding="utf-8" standalone="no"?> <article xmlns="" version="5.0"> <title>Title</title> <table> <caption>caption</caption> <tbody> <tr> <td rowspan="2"> <para>my para</para> </td> </tr> </tbody> </table> </article> Obviously

Interleave In RNC

浪尽此生 提交于 2019-12-19 12:04:04
问题 I have source with three p with different attribute values, I tried to make arbitrary order of elements along with one mandatory element p class='paragraph1'. That is any number of paragraph1, paragraph2 and pharagraph3 in any order but there must be at least one paragraph1. Below I tried the interleave option in RNC, but I failed with an error "the element "p" can occur in more than one operand of "interleave"" This is because the same element declared more than one time. But is this

Generate object model out of RelaxNG schema with RNGOM - how to start?

余生长醉 提交于 2019-12-18 13:26:38
问题 I want to generate an object model out of an RelaxNG Schema. Therefore I want to use the RNGOM Object Model/Parser (mainly because I could not find any alternative - although I don't even care about the language the parser is written in/generates). Now that I checked out the RNGOM source from SVN, I don't have ANY idea how to use RNGOM, since there is not any piece of information out there about the usage. A useful hint how to start with RNGOM - a link, example, or any description which saves

How to validate an XML document using a RELAX NG schema and JAXP?

女生的网名这么多〃 提交于 2019-12-18 12:16:58
问题 I would like to validate XML documents using RELAX NG schemata, and I would like to use the JAXP validation API. From Googling around, it appeared that I could use Jing and the ISO RELAX JARV to JAXP Bridge. Unfortunately, after adding both to my classpath, I can't get it to work. SchemaFactory is just throwing an IllegalArgumentException as soon as it tries to instantiate a factory — I looked inside SchemaFactory , apparently SchemaFactoryFinder is returning a null result. So I'd appreciate

relax-ng compact: attribute whose name matches a reg-ex

Deadly 提交于 2019-12-13 21:52:16
问题 Is there a way in relax-ng to specify that an attribute's name must match a reg-ex. for example the data-attributes in html5. <link rel="some-relation" href="/its-location/" data-color="blue" /> I'm hoping I can do something like... LinkType |= ( attribute rel { text }, attribute data-* { text }*, ( attribute href_template { UriTemplate } | attribute href { Uri } ) ) 回答1: describes regular expression support in RELAX NG. To my knowledge

Validation Layer with interdependency checks

百般思念 提交于 2019-12-13 09:14:11
问题 Existing backend services will be opened for more clients (adding a Web Service Layer to the Web-Frontend client). Currently, XML Schema is used for validation of DTOs, but since the frontend is out of our control, we will have to move extended tests (eg. interdependency tests) from the frontend layer to a new "validation layer". Now our question is if there exist a common pattern for this, eg. something similar to using RELAX NG or a rule engine? The requirement is to be able to check

Why does Jing not allow a colon (“:”) in an id attribute?

半世苍凉 提交于 2019-12-12 18:32:30
问题 I've been banging my head against xsd:ID not allowing a colon (":") in an id attribute. I first noticed this when using James Clark's nxml-mode in Emacs as it validated an XHTML file I was working with. I then ran the XHTML file against the RNG (provided with nxml-mode-20041004) using Jing and received the following error(s): error: value of attribute "id" is invalid; must be an XML name without colons Most of the W3 pages I've seen indicate that a colon is valid. Then I found this, http:/

Control attribute values order in RelaxNG

亡梦爱人 提交于 2019-12-12 04:42:58
问题 Is it possible to control the order of the attribute values in Relax NG? which can be achieved using xs:assert in schema? XML: <body> <h1 class="title">title</h1> <h2 class="subtitle">subtitle</h2> <p class="paragraph1">para text 1</p> <p class="paragraph2">Para text 2</p> <p class="paragraph3">Para text 2</p> </body> The class value should be in order, paragraph1 should always come first and paragraph2 should come after paragraph1. The assert I tried in schema: <xs:assert test="p[1]/@class =