Hi I have a relatively complicated relaxng schema, about 8800 lines. In order to make it easier to maintain and to add a little organization, we split it into...
1218
James Clark
james_j_clark
Aug 18, 2010 3:59 am
It sounds like a bug to me if -s is making things an order of magnitude faster. Can you please file an issue at ...
1219
Philip Crotwell
philipcrotwell
Aug 18, 2010 11:42 am
Hi Entered as http://code.google.com/p/jing-trang/issues/detail?id=118 Here are the validation and simplification times: $ time java -Xmx512m -jar...
1220
Dave Pawson
dpawson2000
Aug 19, 2010 1:56 pm
Norm has just given us another update to the Docbook rng schema. He has added comments to detail it's version, copyright etc. Is there advantage in allowing...
1221
Nic Gibson
nic.corbas
Aug 26, 2010 8:53 am
Morning I've just realised that I have no idea how to express a particular requirement. I have an element, call it 'nutrition39; which must not be empty but can...
1222
Dave Pawson
dpawson2000
Aug 26, 2010 8:57 am
... rephrasing your words element nutrition choice element energy element fat ... /choice /element I think that does it Nic? HTH -- Dave Pawson XSLT XSL-FO...
1223
Nic Gibson
nic.corbas
Aug 26, 2010 9:35 am
... Hi Dave That was my starting point but I don't think it does the job. It certainly requires that the element is non-empty but it doesn't allow instances...
1224
Dave Pawson
dpawson2000
Aug 26, 2010 9:47 am
... At most one each is the phrase that I tripped on. How about at least one, and may have one of the remainder of the group? recurse! I think you want the...
1225
Nic Gibson
nic.corbas
Aug 26, 2010 10:00 am
... My usual approach here is to work out how I would represent it using a DTD and then rewrite it in RelaxNG. Only problem is that I can't see how to...
1226
James Clark
james_j_clark
Aug 26, 2010 10:02 am
I think something like this should work: nutrition = element nutrition { (energy & fat? & carbs? & fibre?) ... } It would be easier if RELAX NG had a more...
1227
Nic Gibson
nic.corbas
Aug 26, 2010 10:06 am
... Ahhhhh. It will. Thankfully, there are only a few child elements possible. Thank you James. And it removes the need for a schematron rule which will make...
1228
Dave Pawson
dpawson2000
Aug 26, 2010 10:16 am
... Why 'difference39; please James? I can see how it would reduce the tedium... just the name? regards -- Dave Pawson XSLT XSL-FO FAQ. Docbook FAQ. ...
1229
James Clark
james_j_clark
Aug 26, 2010 10:48 am
Don't understand the question. I was using the term "difference operator" to refer to the "-" operator in RELAX NG Compact syntax....
1230
Dave Pawson
dpawson2000
Aug 26, 2010 10:56 am
... OK, thanks. so that would read as items from this set, but not empty. Just what Nic wanted. I hadn't related it to the compact syntax (I use the xml syntax...
1231
Leigh L Klotz Jr
leighklotz
Aug 27, 2010 12:45 am
In this case you can use domain knowledge and De Morgan to reduce the combinations, which may also provide useful semantic information. For example, if you add...
1232
Dave Pawson
dpawson2000
Aug 27, 2010 7:06 am
... I'm personally more interested in James idea about extending rng to add his use case? MURATA Makoto has stated he's reluctant to update the ISO spec 'so...
1233
Nic Gibson
nic.corbas
Aug 27, 2010 11:32 am
... Hmm. That's a good point. I will need to go and read a fairly large number of recipe books (I'm updating a cookbook schema) to check though. cheers nic ......
1234
Nic Gibson
nic.corbas
Aug 27, 2010 11:41 am
This afternoon's question is about a restriction I'm trying to create in the same schema I was asking about yesterday. I'm obviously doing something wrong here...
1235
Dave Pawson
dpawson2000
Aug 27, 2010 12:18 pm
... surely mark='graphic39; is redundant? That would leave either mark="char" or rhc:icon='url' So they have either or? HTH -- Dave Pawson XSLT XSL-FO FAQ. ...
1236
Nic Gibson
nic.corbas
Aug 27, 2010 12:30 pm
... Good point. Not thinking too well today. It's not exactly what they want but it certainly does the job and is *much* simpler nic ... -- Nic Gibson Corbas...
1237
Leigh L Klotz Jr
leighklotz
Aug 27, 2010 4:36 pm
I think both viewpoints are reasonable, and aren't mutually exclusive. Gathering use cases for RNG extension is of course a designer's goal, but sometimes...
1238
Dave Pawson
dpawson2000
Sep 20, 2010 1:29 pm
I'm suffering with html5, mix of nxml-mode .el files and java to implement the datatypes. In the .rnc file I have datatypes w = "http://whattf.org/datatype" in...
1239
John Cowan
johnwcowan
Sep 20, 2010 3:35 pm
... No, Jing doesn't care what package your libraries are in. See http://www.thaiopensource.com/relaxng/pluggable-datatypes.html for the actual requirements....
1240
Dave Pawson
dpawson2000
Sep 20, 2010 4:09 pm
... Thanks Jon. As usual, read it ten times before I grock it :-) It's not a manifest file, just an additional file in the jar. regards -- Dave Pawson XSLT...
1243
Florent Georges
darkman_spam
Sep 29, 2010 7:59 pm
Hi, I'm not 100% sure this is the right place to report issue with Trang as maintained in the Google Code project jing-trang, but that's the most likely AFAIK....
1244
James Clark
james_j_clark
Sep 30, 2010 1:21 am
The right place is http://code.google.com/p/jing-trang/issues/list James...
1245
Florent Georges
darkman_spam
Sep 30, 2010 1:48 pm
James Clark wrote: Hi, ... Directly in the bug management tool? Quite odd. Anyway, I will, thanks James! Regards, -- Florent Georges http://fgeorges.org/...
1247
gerben.abbink
Oct 5, 2010 2:59 pm
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...