knowledge-database (beta)

Current group: opera.tech

external entities

external entities  
Alan G Isaac
 Re: external entities  
Rijk van Geijtenbeek
 Re: external entities  
Alan G Isaac
 Re: external entities  
Rijk van Geijtenbeek
 Re: external entities  
Alan G Isaac
From:Alan G Isaac
Subject:external entities
Date:Thu, 30 Dec 2004 22:00:46 -0500
Does Opera support external entities for XHTML documents?
If so, can you please point me to a working example.

Internal entities seem to be working fine.

Thanks,
Alan Isaac
From:Rijk van Geijtenbeek
Subject:Re: external entities
Date:Fri, 31 Dec 2004 13:17:41 +0100
On Thu, 30 Dec 2004 22:00:46 -0500, Alan G Isaac wrote:

> Does Opera support external entities for XHTML documents?
> If so, can you please point me to a working example.
>
> Internal entities seem to be working fine.

Example URL? Opera XML uses a non-validating parser, so it doesn't
retrieve external DTDs.

--
The Web is a procrastination apparatus: | Rijk van Geijtenbeek
It can absorb as much time as | Documentation & QA
is required to ensure that you | Opera Software ASA
won't get any real work done. - J.Nielsen
|http://my.opera.com/Rijk/journal
From:Alan G Isaac
Subject:Re: external entities
Date:Sat, 1 Jan 2005 10:32:38 -0500
> On Thu, 30 Dec 2004 22:00:46 -0500, Alan G Isaac wrote:
> > Does Opera support external entities for XHTML documents?
> > If so, can you please point me to a working example.
> > Internal entities seem to be working fine.



"Rijk van Geijtenbeek" wrote in message
news:opsjvgfrf8cvfty8@news.opera.com...
> Example URL? Opera XML uses a non-validating parser, so it doesn't
> retrieve external DTDs.


I'm not trying to use a different DTD.
I'm just trying to break up a document.
As for internal entities: just try it.
(But I'll attach an example.)

Alan Isaac

Example:


"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"
[

]>


test internal entity



&mtdate;





From:Rijk van Geijtenbeek
Subject:Re: external entities
Date:Sun, 02 Jan 2005 19:44:52 +0100
On Sat, 1 Jan 2005 10:32:38 -0500, Alan G Isaac wrote:

>
> > "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"
> [
>
> ]>
>
>
> test internal entity
>
>
>

&mtdate;


>
>

Yes, this works. Defining the entities outside the document (only possible
with an external DTD, right?) is not supported.

Opera only treats a document as an XML document when it is saved locally
as .xml or .xhtml, and when send online with an appropriate xml-ish Mime
type. You really don't want Opera to parse the normal HTML tagsoup it
receives with an XML-parser, because it will have to stop parsing at the
first error it finds.

--
The Web is a procrastination apparatus: | Rijk van Geijtenbeek
It can absorb as much time as | Documentation & QA
is required to ensure that you | Opera Software ASA
won't get any real work done. - J.Nielsen
|http://my.opera.com/Rijk/journal
From:Alan G Isaac
Subject:Re: external entities
Date:Mon, 3 Jan 2005 15:40:46 -0500

"Rijk van Geijtenbeek" wrote in message
news:opsjzno2gacvfty8@news.opera.com...
> Defining the entities outside the document (only possible
> with an external DTD, right?) is not supported.

This looks like a difference in terminology between us.

What I want to do is declare an entity in the *internal* subset,
just like in the example, but where the replacement text
is in a separate file. Say the replacement text is in test.xml.
Then I want to do something like below. That I think is the
standard usage since say 1998
http://www.xml.com/pub/a/98/08/xmlqna2.html#ENTDECL
As I understand it, the file should be able to contain marked
up text without xml prologue etc, but I cannot get it to work
in any fashion.

Thanks,
Alan Isaac


"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"
[

]>


test external entity



&test;




   

Copyright © 2006 knowledge-database   -   All rights reserved