Thread View: adobe.framemaker.sgml
3 messages
3 total messages
Started by NF82
Mon, 29 Dec 2008 12:57
XML Parser Message: Element series is not valid for the content model
Author: NF82
Date: Mon, 29 Dec 2008 12:57
Date: Mon, 29 Dec 2008 12:57
27 lines
1666 bytes
1666 bytes
Hello, I work with FrameMaker 8 and DITA. I change the element prodinfo in the topic.edd from: General rule: (prodname), (vrmlist), (brand | series | platform | prognum | featnum | component)* to: General rule: (brand | series | platform | component)* When I import the element definition to the template everything is okay. When I insert the elements metadata, prodinfo, brand, series, platform and component into a topic I get the XML Parser Message that the element brand is not valid for the content model �(prodname,vrmlist, ((brand|series|platform|prognum|featnum|component))*)�. When I delete the element brand in the topic I get the XML Parser Message that the element series is not valid for the content model �(prodname,vrmlist, ((brand|series|platform|prognum|featnum|component))*)�. I change the element prodinfo in the topic.edd to: General rule: (brand)?, (series)?, (platform)?, (component)? ...and get the same Parser Message. I do not understand that. Is not it allowed to change the EDD this way without changing the DTD? With kind regards Nina
Re: XML Parser Message: Element series is not valid for the content model
Author: Scott_Prentice
Date: Mon, 29 Dec 2008 19:23
Date: Mon, 29 Dec 2008 19:23
17 lines
1732 bytes
1732 bytes
Hi Nina... In general, the EDD and DTD need to sync up. You can remove elements from an EDD element definition's general rule, as long as the resulting elements are still valid to the DTD. But if changing a general rule creates an invalid structure, you'll need to also change the DTD to allow the revised structure. With DITA, it is common to remove inline elements from block-level elements. For example, you might want to remove the <msgblock>, <msgnum>, and <msgph> elements from the general rule of the element .. this can be done easily in the EDD and the resulting structure remains valid with the DTD. However, what you're doing leaves the <brand> element as a child of <prodinfo> .. which is invalid. You'll get these errors when saving a file, since this is when the file is validated against the DTD. I do not recommend modifying the structure in such a way that requires you to modify the DTD. If you really need to do this, then you should consider making a specialization to support your revised model. I hope this helps. Cheers and Happy New Year! ...scott
Re: XML Parser Message: Element series is not valid for the content model
Author: NF82
Date: Tue, 30 Dec 2008 08:24
Date: Tue, 30 Dec 2008 08:24
7 lines
731 bytes
731 bytes
Hello Scott, yes it helps. Thank you. I wish you a Happy New Year, too. With kind regards Nina
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads