[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]
Subject: Re: DOCBOOK: email in author element
On Sun, Jul 07, 2002 at 09:50:03PM -0700, Mark Miller wrote: > According to the DocBook spec, <email> should be able to be > a child of <author>. When validating with Xerces from the > command line, I receive an error message stating that > <email> is not part of the content model. > > Here's a direct quote from the spec: > Parents > These elements contain email: action, address, application, > attribution, author, ... > > Here's the error message: > NOT VALID metadata.xml > metadata.xml Error: > The content of element type "author" must match > "(honorific|firstname|surname|lineage|othername|affiliation|authorblurb|contrib)+". > > Here's the content model for author: > author ::= > ((personname| > > (honorific|firstname|surname|lineage|othername|affiliation| > authorblurb|contrib)+), > (personblurb|email|address)*) > > It looks as if the last, optional part of the content model > is not being reached. > > Here's the XML: > > <?xml version="1.0" standalone="no"?> > > <!DOCTYPE book > PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN" > "../resources/docbook-dtds/docbookx.dtd"> > > <book> > <!-- META DATA ABOUT THIS MODULE --> > <bookinfo> > <title>Introduction to DocBook</title> > <author> > <firstname>Mark</firstname> > <surname>Miller</surname> > <email>storefront2000@yahoo.com</email> > </author> > </bookinfo> > </book> > > Clarification of what is happening would be appreciated. <email> was added to <author> in DocBook DTD 4.2, and you are using 4.1.2. The doc you are reading is probably for 4.2. If you are stuck with using 4.1.2, then you have to do: <author><affiliation><address><email>foo@what.com</email></address></affiliation></author> -- Bob Stayton 400 Encinal Street Publications Architect Santa Cruz, CA 95060 Technical Publications voice: (831) 427-7796 Caldera International, Inc. fax: (831) 429-1887 email: bobs@caldera.com
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]
Powered by eList eXpress LLC