[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Re: [docbook] Simpified DocBook
Hi Dave, I tried your Simple DocBook Schema but I got errors in oXygen 8.2. I transformed your RNC into RNG with trang. On Montag, 9. Juli 2007, Dave Pawson wrote: > db.itemizedlist |= > element itemizedlist { > db.itemizedlist.attlist, > db.itemizedlist.info, > db.listitem+ > } oXygen says, something about conflicting ID-types for attribute "id" from namespace "http://www.w3.org/XML/1998/namespace" of element "itemizedlist" I think, the element itemizedlist is missing the namespace from DocBook 5. > include "/sgml/docbook/v5/rng/docbook.rnc" { > start = db.article > > db.abbrev = notAllowed > db.abstract = notAllowed > db.accel = notAllowed > db.ackno = notAllowed > [...] This pattern "db.ackno" is not known in DocBook 5. The strange thing is, I validated the RNG version with jing and msv and they didn't complain, only oXygen refused to work with this file. Maybe someone else can explain these differences. When I insert the above changes I get the following RNC schema: -------------- default namespace = "http://docbook.org/ns/docbook" namespace inherit = inherit # db.itemizedlist |= element itemizedlist { db.itemizedlist.attlist, db.itemizedlist.info, db.listitem+ } include "docbook.rnc" inherit = inherit { start = db.article db.abbrev = notAllowed db.abstract = notAllowed db.accel = notAllowed db.titleabbrev = notAllowed db.subtitle = notAllowed db.bibliolist = notAllowed db.glosslist = notAllowed db.index = notAllowed db.fieldsynopsis = notAllowed db.glossary = notAllowed db.cmdsynopsis = notAllowed db.constructorsynopsis = notAllowed db.epigraph = notAllowed db.calloutlist = notAllowed db.constraintdef = notAllowed db.equation = notAllowed db.important = notAllowed db.destructorsynopsis = notAllowed db.funcsynopsis = notAllowed db.formalpara = notAllowed db.informalequation = notAllowed db.informalfigure = notAllowed db.msgset = notAllowed db.methodsynopsis = notAllowed db.segmentedlist = notAllowed db.tip = notAllowed db.synopsis = notAllowed db.qandaset = notAllowed db.bibliography = notAllowed db.variablelist = notAllowed db.programlistingco = notAllowed db.productionset = notAllowed db.sect1 = notAllowed db.sect2 = notAllowed db.sect3 = notAllowed db.sect4 = notAllowed db.sect5 = notAllowed db.anchor = notAllowed db.caution = notAllowed db.informalexample = notAllowed db.informaltable = notAllowed db.task = notAllowed db.warning = notAllowed db.classsynopsis = notAllowed db.remark = notAllowed db.sidebar = notAllowed db.itemizedlist = notAllowed } -------------- Hope that helps, Tom -- Thomas Schraitle
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]