Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: Uses of processing instructions and notations

From: Tom Anderson <twic@------.-----.-->
To: NULL
Date: 12/4/2008 8:14:00 PM
On Thu, 4 Dec 2008, Tom Anderson wrote:

> And does anyone actually use any of this stuff?

To partially answer my own question, yes. In DocBook:

http://www.oasis-open.org/docbook/xml/4.5/dbpoolx.mod

There's some fairly convoluted DTDage that boils down to:

<!ELEMENT graphic EMPTY>
<!ATTLIST graphic
 	entityref	ENTITY		#IMPLIED
 	fileref 	CDATA		#IMPLIED
 	format		(%notation.class;) #IMPLIED
>

Which combines with the contents of:

http://www.oasis-open.org/docbook/xml/4.5/dbnotnx.mod

To let you write things like:

<!ENTITY lena "lena.jpg" NDATA JPEG> <!-- in the doctype -->
<graphic format="JPEG" entityref=lena>

Disappointingly, the format attribute is done as a normal enumerated 
attribute, not a NOTATION attribute.

Seems a bit clunky, what with having to declare the entities up top.

tom

-- 
I'm angry, but not Milk and Cheese angry. -- Mike Froggatt


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent