RE: The XSL-List Digest V2 #608 Entities.

Subject: RE: The XSL-List Digest V2 #608 Entities.
From: "Dave Pawson" <dave.pawson@xxxxxxxxxx>
Date: Thu, 20 Apr 2000 18:24:14 +0100
Thanks David. Quite a revelation (to me).

Just checking if I understand: 

I'm processing a source document (file1)which
has its doctype, entities defined etc.
  Mid stream I use a document() to retrieve and
process another xml file (file2)
The doctype, local entities I have defined for
file1 are completely dissociate from those of
file2. Am I right in this? And any entities I
define within the stylesheet, they are only
'valid for use' within the stylesheet?
so on this basis I have 3 document structures,
file1 file2 and the stylesheet, each with its
own, non-overlapping set of entity definitions.

Mmmm.

Fascinating.
Regards, DaveP

Thanks also to Rick G for his later reply.
I 'couldn't' do as suggested, since I was using
the main input file simply as an 'index' into 
the others whose root I was ignoring. It is defined
in that file. 





Date: Tue, 18 Apr 2000 18:42:53 +0100 (BST)
From: David Carlisle <davidc@xxxxxxxxx>
Subject: Re: entities

> xt is complaining because I haven't got eacute defined.
> I have tried including
> entity definition within the xsl file used,

> file:/xslcharacters.xml:393: reference to undefined entity "eacute" 

You didn't show the file xslcharacters.xml but I assume it has 
&eacute; on line 393, and no <!DOCTYPE at the top.

the declaration in this file isn't doing anything as this file
doesn't use the entity.


<!DOCUMENT doc [
<!ENTITY  eacute	"&#x00E9;"><!--	# LATIN SMALL LETTER E WITH ACUTE -->
]>
<doc>

   <file>xslcharacters.xml</file>
</doc>


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread