This is the mail archive of the
docbook@lists.oasis-open.org
mailing list for the DocBook project.
email in author element
- From: Mark Miller <storefront2000 at yahoo dot com>
- To: docbook at lists dot oasis-open dot org
- Date: Mon, 08 Jul 2002 07:27:10 -0700 (PDT)
- Subject: DOCBOOK: email in author element
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.
Thanks.
Mark
__________________________________________________
Do You Yahoo!?
Sign up for SBC Yahoo! Dial - First Month Free
http://sbc.yahoo.com