Hi List This may seem to be a silly question (it does to me ;) ) but is there any restrictions on where in a relax-ng schema the optional elements should...
Rory McKinley
rorymckinleylists@...
May 5, 2008 7:34 pm
829
... They can appear where you say they can appear. If you have a content model of: { element a { text }, element b { text }?, element c { text } } ... then <b>...
Might help, Rory, if you append a snippet of your schema and a tiny sample XML instance that is not valid against it, but that you thought would be....
... <snip> Thanks Ken You have pretty much confirmed what I thought should happen. Unfortunately, the reality seems to be different. I have posted snippets of...
Rory McKinley
rorymckinleylists@...
May 7, 2008 1:52 am
832
... <snip> Ok Syd That's a good idea - below find (a really long post)- the schema (a snippet): <?xml version="1.0" encoding="UTF-8"?> <grammar...
Rory McKinley
rorymckinleylists@...
May 7, 2008 1:52 am
833
... Which processor are you using? Jing version 20030619 accepts your instance without error (see below). I hope this helps. . . . . . . . . . . . . Ken ...
Is there a validating parser available in one of the M$ languages please? I.e. not Java? TIA -- Dave Pawson XSLT XSL-FO FAQ. http://www.dpawson.co.uk...
... Relax NG does not have a regular expression syntax, you have to use a data type library and you would have to check whatever specification governs the type...
Hi David. Hope all is well with you. ... <data type="string"> <param name="pattern">https?://([^/?#]+)/([^?#]*)(\?([^?#]+))?(#(.*))?</param> </data> That's it....
http://www.oasis-open.org/committees/relax-ng/compatibility-20011203.html#default-value ODF calls this up normatively. How can it be tested please? E.g. given ...
... Change the schema and observe different application behavior. If you cannot change the schema, you most likely couldn't tell whether an application...
... I can change the schema. How, then, might I automatically test for a difference? Noting the app is an ODF implementation? regards -- Dave Pawson XSLT...
... The general idea would be to make two schemas with different default values; consider there is a color attribute, one schema specifies blue color, the...
Hi there, I have a question about the default namespace attribute ns. Is this inherited when using define? I created the following test, first a simple xml...
... Yes, see the namespaces in xml recommendation. http://www.w3.org/TR/REC-xml-names/#defaulting The scope of a default namespace declaration extends from the...
... Oke, that is for the default namespace declarations with xmlns. But how about the relax-ng ns attribute. In my second example I expected that the ns...
I want xml such as <test applicable='document'/> or <test applicable='application' class='text spreadsheet'/> <test applicable='application' class='text...
... That works. Thanks George.... <test applicable="application" class="database database"/> is also allowed: <oneOrMore (but no more than one of each)> is...
... I don't have the time to check, but I would use 'list' for that purpose: <attribute name='class'> <list> <oneOrMore> <value type='token'>text</value> ...
... If "string" allows any string, then the office:target-frame-name attribute may have any value. If it is something else, then we do not know. Perhaps the...