Altova Mailing List Archives>Archive Index >comp.text.xml Archive Home >Recent entries >Thread Prev - Uses of processing instructions and notations [Thread Next] Re: Uses of processing instructions and notationsTo: 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 | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
