Hi, I have a Relax NG schema containing: interleave A B C group X Y According to a Relax NG validator i am using (JING), this is allowed: X C Y B A Is this...
1248
John Cowan
johnwcowan
Oct 5, 2010 3:42 pm
... Yes, absolutely. Valid documents consist of any possible interleaving of the sequences {A}, {B}, {C}, and {X, Y}. ... X does need to be followed by Y, so...
1249
Dave Pawson
dpawson2000
Oct 5, 2010 4:02 pm
... The 'group39; x,y is a sequence isn't it John? So if I see an X it Must be followed by Y? That's a tentative statement btw! regards -- Dave Pawson XSLT...
1250
John Cowan
johnwcowan
Oct 5, 2010 4:12 pm
... To match a sequence of X and Y, X must appear before Y in document order. That does not mean that X and Y must be consecutive, because an interleave may...
1251
Dave Pawson
dpawson2000
Oct 5, 2010 4:55 pm
... But Y must be present, and after X. Thanks John. It was the 'group39; that got me. Proven with <define name='Report39;> <element name='root39;> <interleave> ...
1252
biogesamt
Oct 12, 2010 11:06 am
Trying to get the following XSD output from RelaxNG, using Trang for conversion: <xs:annotation> <xs:documentation>Basic documentation text...
1253
a_mcgregor@...
a_mcgregor...
Oct 13, 2010 9:13 am
Hello, My first look at RelaxNG. Is it possible to validate a date ... based on past, current or future dates? TIA Andy...
1254
Dave Pawson
dpawson2000
Oct 13, 2010 9:18 am
... Example please? What format? Define 'valid39;? regards -- Dave Pawson XSLT XSL-FO FAQ. Docbook FAQ. http://www.dpawson.co.uk...
1255
a_mcgregor@...
a_mcgregor...
Oct 13, 2010 9:24 am
... So today is 13th October 2010. My xsd is in the form: <optional> <element name="create_date"> <data type="date"/> </element> </optional> The spec is: ...
... Very, very nearly .. now, is this possible? <param name="maxInclusive">$today</param> If not, then how do people generally get around variable validation? ...
1258
Dave Pawson
dpawson2000
Oct 13, 2010 9:59 am
... I think you just strayed over the mythical boundary into xml processing/applications. Try XSLT/Schematron for that class of validation. HTH -- Dave Pawson ...
1259
a_mcgregor@...
a_mcgregor...
Oct 13, 2010 10:05 am
... I thought that might be the case, but I couldn't quite articulate what the line is that I am looking for. I'm not a fan of XSLT so I tihnk I'll either...
1260
Myles Byrne
biogesamt
Oct 13, 2010 11:18 am
I'm trying to get the below XSD output with nested annotations from RNG via Trang. I've tried everything in the documentation, using brackets and declaring...
1261
Gerben Abbink
gerben.abbink
Oct 13, 2010 12:28 pm
In your document, prefix "a:" is bound to the annotation namespace http://relaxng.org/ns/compatibility/annotations/1.0. Therefore, you should use prefix "a:"...
1262
Syd Bauman
syd_bauman
Oct 13, 2010 4:28 pm
So first, this is the RELAX NG list, so I'm not quite sure how a question about how to validate a date using either XSD updated daily (!) or Schematron fits...
1263
John Cowan
johnwcowan
Oct 13, 2010 4:40 pm
... The OP was asking "Does RELAX NG provide access to the current date?" (as distinct from XSD which does not). The answer is no, of course, so everything...
1264
Myles Byrne
biogesamt
Oct 15, 2010 7:54 am
Thanks, Gerben. I've tried this, and indeed according to all the documentation, it should work fine. But Trang ignores everything but flat a:documentation tags...
1265
Dave Pawson
dpawson2000
Oct 15, 2010 8:36 am
... Can you tell us what you want to do? I use a:documentation for ... documentation. Not to carry other namespaced content into a different schema format. I'm...
1266
Gerben Abbink
gerben.abbink
Oct 15, 2010 12:58 pm
RelaxNG's annotation namespace " http://relaxng.org/ns/compatibility/annotations/1.0" has no "a:annotation" element, only "a:documentation". Trang ignores...
1267
John Cowan
johnwcowan
Oct 15, 2010 2:03 pm
... "> ... Naturally. The only element name defined in the a: namespace is a:documentation; see < ...
1268
Dave Pawson
dpawson2000
Oct 15, 2010 4:34 pm
... What would you expect jing/trang to do with such content John? Aren't we into other sides of dsdl then? DaveP -- Dave Pawson XSLT XSL-FO FAQ. Docbook FAQ. ...
1269
John Cowan
johnwcowan
Oct 15, 2010 5:22 pm
... When converting to DTD, just take the XPath value of the content (effectively ignoring all tags). When converting to XSD, preserve the whole markup inside ...
1270
Dave Pawson
dpawson2000
Oct 15, 2010 5:38 pm
... Happy with the first two, 1. Becomes a comment (so what is the point of the markup in the .rng?) 2. Could be meaningful in .xsd 3. XML markup in .rnc? No...
1271
John Cowan
johnwcowan
Oct 15, 2010 6:47 pm
... I'm referring to the square bracket notation used in RNC format to correspond to foreign markup of any sort in RNG format. Thus, if you have this RNG: ...
1272
Dave Pawson
dpawson2000
Oct 16, 2010 6:20 am
... Thanks for the explanation John. regards -- Dave Pawson XSLT XSL-FO FAQ. Docbook FAQ. http://www.dpawson.co.uk...
1273
Myles Byrne
biogesamt
Oct 18, 2010 10:40 am
Thanks, everyone. +1 for a:documentation accepting XML. FWIW my original question is motivated by the need to annotate a bioinformatic XSD schema for JaxB...
https://msv.dev.java.net/servlets/ProjectDocumentList?folderID=101 ACTION REQUIRED: Java.net is migrating to a new infrastructure and project owners must...
1277
Tatu Saloranta
cowtowncoder
Nov 9, 2010 5:55 pm
MSV has moved to github, see: https://github.com/kohsuke/msv. The idea was to make it easier to handle contributions, esp. given infrastructure issues with...