I have a conversion issue when going from RNG to XSD that I don't understand. I have a flat RNG with several simple element patterns defined thusly ... ...
... Actually, it is. Because your element has an attribute, it must be modeled in XSD with a complex type, and the way to indicate that a complex type may...
... I thought the preferred way to do this in XSD was <xs:complexType name="p.content"> <xs:simpleContent> <xs:extension base="xs:string"> <xs:attributeGroup...
... Hmmm. Rats. I wonder if this will make getting XProc out of CR a problem. The p:validate-with-relax-ng step includes an option to support the attribute...
... The obvious approach is to whomp up an XSLT script that takes a RELAX NG schema with a:defaultValue annotations and generates another XSLT script that can...
... That may be the obvious approach, but I'm not sure the XSLT script is obvious, unless implementing a RELAX NG validator in XSLT seems obvious to you, in...
... The problem's a little harder than I thought, but not as hard as you think, and fortunately, Eric VdV has done the heavy lifting on it. There is a strong...
... That's subtly different: it's a complex type whose content is a string, as opposed to its content being text. The validation will be the same, just as the...
Hi everyone, As far as I can see currently trang cannot convert xsd schemas to relax ng. Are there any plans to add this in future? If there are no plans for...
Hi, I want to validate an XML file containing following section. Requirement is to validate "required", unordered fields with same name. <Metadata> <App_Data...
... Not unless you want to try? Sun MSV is the tool I use. https://msv.dev.java.net/ FILE FOR THE SUN RELAX NG CONVERTER version 20060319 Copyright (c) Sun...
... Trang's model is to convert schemas in such a way that the component parts of the input are well reflected in the output. XSD->RNG is too hard to do using...
Dear Trang users, maybe you know the answer on the following questions: 1) Are nested grammars going to be supported during conversion from RNG to XML Schema?...
I am trying to compile a conforming XML schema to an rnc for use with nxml. I do the following: 1. Compile the Xsd to rng with rngconv.jar from the Sun...
Is it possible to expand any xIncludes in a source document prior to validation with Jing please? I.e. as part of the same call to Jing? Seems like a useful...
Hi, How to specify a restriction based on a regular expression with the compact syntax: element test{ attribute version { text } } I want to force a pattern...
... element test{ attribute version { token {pattern="\d+(\.\d+)*"} } } (see http://books.xmlschemata.org/relaxng/relax-CHP-9.html) Hope this helps. Eric...
... Use an XSD data type in order to add a pattern facet, and don't use "^" or "$" in the pattern. I hope this helps. . . . . . . . . . Ken T:\ftemp>type...
... Sorry, JLM, but I transcribed your pattern incorrectly into my test, and the test case I presented for failure should have passed. I hope I've copied it...
... That's exactly right: the first three patterns succeed and the fourth fails, because a dot without digits following is forbidden by the pattern. It's not...
RNG users, Good news is that another ISO/IEC standard, ISO/IEC-15909, uses RELAX NG. Bad news is that they are annoyed by the ID/IDREF issue. Cheers, Makoto ...
I'm converting an RNG schema to RNC using trang-20081028. There are a few RNG files, and a modules/ directory containing others. The top-level RNG files...
I have a rng file that is essentially a flat structure with all elements and attributes referencing named patterns ... e.g., <element name="element_name"> <ref...
apologies: the second example below is in error: an element definition was distributed because of a pattern merge. The first example is legit, however. I...
I have a definition that contains a set of attributes that I want to apply to a variety of other types. When applies to the other types I want to be able to...
Hi, I'm fairly new to RelaxNG, and so my apologies in advance if I'm missing something basic. Does the jing command line program take XML schema dataypes into...