comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Another XML Question
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Another XML Question [message #43227 is a reply to message #43081] Thu, 24 March 2005 09:06 Go to previous messageGo to previous message
Karl Schultz is currently offline  Karl Schultz
Messages: 341
Registered: October 1999
Senior Member
On Thu, 24 Mar 2005 11:43:22 -0500, James Kuyper wrote:

> Karl Schultz wrote:
>> On Wed, 23 Mar 2005 19:44:03 -0800, kuyper wrote:
>>
>>
>>> Michael Wallace wrote:
>>>
>>>> >Oh, of course. Now what the hell is a DTD again?
>>>>
>>>> Document Type Definition.
>>>> ...
>>>> [Lots of good general-purpose information about DTDs]
>>>
>>> David's questions got me curious, so I spent a lot of time this
>>> afternoon wading through the IDL documentation for it's XML objects. At
>>> the end of that survey, I still couldn't figure out how to use a DTD in
>>> connection with those objects. There's lots of things that say "if a
>>> DTD is provided", but I couldn't find anything that indicated how to
>>> provide a DTD. Could someone give some actual IDL code for this?
> ...
>> In the example below, note the DOCTYPE element. It refers to a file named
>> slideshow.dtd that contains the DTD, also shown below. The DTD info can
>> actually be in the XML file itself, within the DOCTYPE element, but it is
>> common to put the DTD in a different file for easier reuse.
>
> If the DTD is stored as a separate file, which locations does IDL search
> for the DTD file, and in what order? Is there a repository of standard
> DTD files somewhere?

If it is just a plain filename with no path, the DTD file would have to be
in the same directory as the XML file. You could also reference a file
with a pathname. There is no IDL-defined search order.

It is fairly common practice to put DTD's on the net and reference them
with a URL.

Here is a DTD for XHTML:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

You might look for other "standard" DTD's at the w3.org site.

Karl
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: Little CREATE_STRUCT issue
Next Topic: LINUX Device Question

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Tue Dec 02 19:33:56 PST 2025

Total time taken to generate the page: 1.36068 seconds