[NTLUG:Discuss] How to read a DTD?

Bruce DeGrasse bdegrasse1 at attbi.com
Wed Apr 3 08:04:08 CST 2002


I have been adding photos/images to OpenOffice and Kword documents in the 
last couple of months and have found that the best approach is to backward 
engineer a simple situation and then using the DTD as reference material to 
understand the changes in the XML source code.  Designing inserts from a cold 
start appears to me impossible as the DTD's are generally very cryptic.  For 
instance, I am still having trouble understanding word-wrap in Kword.

I am not familiar with the package you reference but would be glad to take a 
look at it.

I have not seen a such a DTD reader but would also like to see one.

Bruce


On Wednesday 03 April 2002 01:10 am, you wrote:
> <html>
> <head>
> </head>
> <body>
> Gang,<br>
> <br>
> I'm using Norman Walsh's slides package to create foils. &nbsp;I'm
> trying<br> to figure out how to include an image on a foil. &nbsp;I've
> stared at things<br> like:<br>
> <br>
> <small>&lt;!ELEMENT imagedata EMPTY&gt;</small><br>
> <small>&lt;!ATTLIST imagedata</small><br>
> <small>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; %common.attrib;</small><br>
> <small>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
> %objectdata.attrib;</small><br> <small>&nbsp;&nbsp;&nbsp;
> width&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; CDATA&nbsp;&nbsp;&nbsp;
> &nbsp;&nbsp;&nbsp; #IMPLIED</small><br> <small>&nbsp;&nbsp;&nbsp;
> depth&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; CDATA&nbsp;&nbsp;&nbsp;
> &nbsp;&nbsp;&nbsp; #IMPLIED</small><br> <small>&nbsp;&nbsp;&nbsp;
> align&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; (left</small><br>
> <small>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; |right
> </small><br> <small>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
> &nbsp;&nbsp;&nbsp; |center)&nbsp;&nbsp;&nbsp; #IMPLIED</small><br>
> <small>&nbsp;&nbsp;&nbsp; scale&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
> CDATA&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; #IMPLIED</small><br>
> <small>&nbsp;&nbsp;&nbsp; scalefit&nbsp;&nbsp;&nbsp;
> %yesorno.attvals;</small><br> <small>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
> &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
> #IMPLIED</small><br> <small>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
> %local.imagedata.attrib;</small><br> <small>&nbsp;&nbsp;&nbsp;
> &nbsp;&nbsp;&nbsp; %imagedata.role.attrib;</small><br>
> <small>&gt;</small><br>
> <br>
> until my stack overflowed! &nbsp;Is there any package that reads a DTD<br>
> and presents a readable glossary of elements and their attributes???<br>
> <br>
> Thanks,<br>
> <br>
> Val<br>
> <pre class="moz-signature" cols="$mailwrapcol">--
> Val W. Harris            <a class="moz-txt-link-abbreviated"
> href="mailto:vwharris at airmail.net">vwharris at airmail.net</a>
>
> "Become a student of change. It is the only
> thing that will remain constant."
> -Anthony J. D'Angelo
> </pre>
> </body>
> </html>
>
>
> _______________________________________________
> http://www.ntlug.org/mailman/listinfo/discuss




More information about the Discuss mailing list