Um, no, there is no <_phrase> element. There is a <phrase> element whose content is different in different contexts. The _phrase is a named pattern in the RelaxNG syntax, similar to a parameter entity in DTD syntax.

Bob Stayton
Sagehill Enterprises
[email protected]


----- Original Message ----- From: "Mike Maxwell" <[email protected]>
To: "Norman Walsh" <[email protected]>
Cc: <[email protected]>
Sent: Wednesday, January 20, 2010 7:31 PM
Subject: Re: [docbook] Re: db._phrase


Norman Walsh wrote:
The content model of db.phrase includes *all* the inlines. So if, for example,
db.phrase was allowed inside abbrev, then this would be legal:

  <abbrev><phrase><constant>PI</constant></phrase></abbrev>

even though this *is not* legal:

  <abbrev><constant>PI</constant></abbrev>
...
Make sense?

I think so. Let me paraphrase my understanding: for purposes of validation, a named doc which includes db.phrase and/or db._phrase elements will validate against the DB schema if and only if the doc validates when the <phrase>, <_phrase>, </phrase> and </_phrase> tags are simply omitted, with one potential exception. The exception would be if the <phrase> or <_phrase> elements were marked with invalid attributes.

So for purposes of validation, the db.phrase and db._phrase elements are "transparent."

Is that correct?
--
   Mike Maxwell
   What good is a universe without somebody around to look at it?
   --Robert Dicke, Princeton physicist

---------------------------------------------------------------------
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