[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: RE: [dita-lightweight-dita] templae specialization, some remarks
Birgit’s marketing example is a good one for testing the template tool. I will post a response and an update to the tool to address the issues next week. Regards, Tim. From: dita-lightweight-dita@lists.oasis-open.org [mailto:dita-lightweight-dita@lists.oasis-open.org]
On Behalf Of Michael Priestley
Untortunately, this mail come back. It seems that I am not allowed to send a mail to the whole group. Can you please forward it? Maybe it is not relevant anymore after the call yesterday, but maybe well. Kind regards, Birgit -------- Oorspronkelijke bericht --------
Hello Tim and all, I have tried to generate a RNG from my marketing-template. This was no problem and I have got a RNG. After I got the RNG I have treid to generate a XSD from it (using Oxygen). The XSD I get is not valide. This depends on some
problems. First: In the RNG stands: <start combine="choice"> There shouldn't stand a <ref name="topic.content"/> because this make that you get twice the element title and prolog etc. I put this ref in a XML commetn before generating the XSD. After generating the XSD I get error-messages about the elements I have specialized on <p> and <xref>. E.g. in my template I have: <p outputclass="action" important="optional"> This become in the RNG <element name="action"> This looks ok, but in the XSD it went wrong and I get the message that "E [Xerces] cos-nonambig: image and image (or elements from their substitution group) violate "Unique Particle Attribution". During validation against this
schema, ambiguity would be created for those two particles." Honestly, I am not sure if the RNG is wrong or that something went wrong during generating the XSD. Another problem is that because I cannot define a choice group fort the specialization of section I get a required order even if I set important=”optional” for the child elements. Example: <section outputclass="marketingsection" important="optional"> <!-- specmodel="choice" --> When I create a XML-document with the RNG I am not allowed to delete feature within the marketingsection. So we really have to think about how we can specialize elements which basic content model is a sequence of an element
followed by de choice-group. Attached you find the template, the RNG and the XSD. Kind regards, Birgit |
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]