Anagha,
 
If you're using DocBook 5.0, there are two resources you should
look at first:
 
- The draft DocBook 5.0 Definitive Guide:
  http://docbook.org/tdg5/en/html/docbook.html
- The DocBook 5.0 How-to: http://docbook.org/docs/howto/
 
The definitive guide will give you the details of DocBook's
syntax.  Norm Walsh, who authors the guide has just updated
it to make it easier to read.  The section called "Understanding
Content Models" describes how to read the detailed syntax.
You can find that description here:
 
http://docbook.org/tdg5/en/html/ref-elements.html#s2-cmintro
 
The How-to will give you information about how DocBook 5.0
has changed, and also give you suggestions on how best to
use DocBook.  These two should give you a good start.
 
Dick

-----Original Message-----
From: Anagha Tongaonkar [mailto:[EMAIL PROTECTED] 
Sent: Thursday, March 06, 2008 6:15 PM
To: Dick Hamilton
Cc: [email protected]
Subject: Re: [docbook-apps] DB 5 -- Element "example" not allowed inside
element "article" ?


Thank you! Dick. You are right, I was trying to insert "example" tag
before "info" & after "section"
Per your suggestions, I included it before section & it worked! Any
idea, where can I find documentation about -- what elements are allowed
under a given parent and what should be the sequence of the children
elements? Appreciate your replies.
- A

Dick Hamilton wrote: 

Anagha,



The most likely possibility is that you've got <example>

either before the <title> or <info> elements, or after

one of the "section" elements (<section>, <sect1>, etc.)



For example,



<article ...>

  <title>the title</title>

  <example>....</example>

  <section>......</section>

</article>



would be ok, but:



<article ...>

  <title>the title</title>

  <section>......</section>

  <example>....</example>

</article>



is invalid.



If that's not the problem, then if you could post the

shortest example you have that fails, that would help

diagnose the problem.



Dick Hamilton

[EMAIL PROTECTED]



  

-----Original Message-----

From: Anagha Tongaonkar [mailto:[EMAIL PROTECTED] 

Sent: Thursday, March 06, 2008 4:35 PM

To: [email protected]

Subject: [docbook-apps] DB 5 -- Element "example" not allowed 

inside element "article" ?





Hi All,



I am trying to insert an element "example" inside "article"; 

however, I 

get the following error message in the XML editor (I am using 

oXygen XML 

editor):

element "example" from namespace "http://docbook.org/ns/docbook";
<http://docbook.org/ns/docbook>  not 

allowed in this context



However, per information on:

http://www.oasis-open.org/docbook/documentation/reference/html

/example.html



I see "example" has a parent "article"



Please advise.



Thank you,

Anagha

PS: I am using DocBook 5, the article element appears as: <article 

xmlns="http://docbook.org/ns/docbook"; <http://docbook.org/ns/docbook>
version="5.0"> in my xml file.



---------------------------------------------------------------------

To unsubscribe, e-mail: [EMAIL PROTECTED]

For additional commands, e-mail: 

[EMAIL PROTECTED]





    





  


--------------------------------------------------------------------- To
unsubscribe, e-mail: [EMAIL PROTECTED] For
additional commands, e-mail: [EMAIL PROTECTED] 

Reply via email to