POV-Ray : Newsgroups : povray.off-topic : The trouble with XSLT : Re: The trouble with XML Server Time
29 Jul 2024 20:22:17 EDT (-0400)
  Re: The trouble with XML  
From: Darren New
Date: 25 Feb 2012 19:35:48
Message: <4f497e64@news.povray.org>
On 2/25/2012 2:37, Orchid Win7 v1 wrote:
> For example, to say "this XML file actually contains XHTML", you're supposed
> to add something like 5 separate headers, each about 25 million miles long,
> to the top of the file. Why? Would one header not be sufficient?

Really? What do you have to add? I suspect you exaggerate a bit.

> Then there's all that stupidity with character entities. It should be
> possible to include character entities in /all/ XML documents, not just
> XHTML. But to this day, I have never discovered a way of doing this.

You have to declare the entities. Otherwise, you run across &frump; and 
don't know what it means. That's what DTDs are for.

> One of the nice ideas of XML is that you can use namespaces to include one
> sort of XML document inside enought - e.g., you could put an SVG file inside
> an XHTML file. But nooo, apparently you need a specialised DTD to do that.

You can. Of course, your various processors have to know what the various 
namespaces *mean*, so you have to declare them and you have to have a 
processor that understands them (which is where the DTDs come in).

-- 
Darren New, San Diego CA, USA (PST)
   People tell me I am the counter-example.


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.