OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help

docbook message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]

Subject: DocBook5: literallayout in entry gives validation errors


I am wondering why the following file seems invalid:

<?xml version="1.0" encoding="UTF-8"?>

<article xmlns="http://docbook.org/ns/docbook"; version="5">
  <title>Test Case: literallayout in entry</title>
    <tgroup cols="1">
          <entry>abc <literallayout>def</literallayout></entry>

I don't know why this should be invalid, but jing complains with the 
following message:

$ jing -c docbook.rnc table-and-literallayout.xml
table-and-literallayout.xml:10:37: error: element "literallayout" from 
namespace "http://docbook.org/ns/docbook"; not allowed in this context

Although oXygen allows me to insert literallayout at this position it 
seems nevertheless invalid. I looked into docbook.rnc and found this:

db.entry =
    ## A cell in a table
    element entry {
      db.entry.attlist, (db.all.inlines* | db.all.blocks*)

Following "db.all.blocks" the following list shows from where 
literallayout is allowed:

db.all.blocks -> 
  db.nopara.blocks -> 
    db.verbatim.blocks -> 

Can anybody explain this to me, please? (Probably it something obvious 
that I miss ATM.) :)


---- Versions:
Jing version 20030619
DocBook 5 CR7
oXygen 8.2

Thomas Schraitle

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]