Re: File Entity Behaviour

Subject: Re: File Entity Behaviour
From: Bill Martschenko <billmartschenko@xxxxxxxxx>
Date: Wed, 29 Sep 1999 00:41:34 -0700 (PDT)
Betty,

I hope this is good news:  Your example works fine. 
In fact, I split your sample into 18 different file
entities &stanza1; to &stanza18; and this worked
great.  Looks really nice!!

<?xml version="1.0"?>
<?xml-stylesheet href="poem.xsl" type="text/xsl"?>
<!DOCTYPE poem SYSTEM "poem.dtd" [

<!ENTITY stanza1 SYSTEM "stanza1.xml">
<!ENTITY stanza2 SYSTEM "stanza2.xml">
<!ENTITY stanza3 SYSTEM "stanza3.xml">
<!ENTITY stanza4 SYSTEM "stanza4.xml">
<!ENTITY stanza5 SYSTEM "stanza5.xml">
<!ENTITY stanza6 SYSTEM "stanza6.xml">
<!ENTITY stanza7 SYSTEM "stanza7.xml">
<!ENTITY stanza8 SYSTEM "stanza8.xml">
<!ENTITY stanza9 SYSTEM "stanza9.xml">
<!ENTITY stanza10 SYSTEM "stanza10.xml">
<!ENTITY stanza11 SYSTEM "stanza11.xml">
<!ENTITY stanza12 SYSTEM "stanza12.xml">
<!ENTITY stanza13 SYSTEM "stanza13.xml">
<!ENTITY stanza14 SYSTEM "stanza14.xml">
<!ENTITY stanza15 SYSTEM "stanza15.xml">
<!ENTITY stanza16 SYSTEM "stanza16.xml">
<!ENTITY stanza17 SYSTEM "stanza17.xml">
<!ENTITY stanza18 SYSTEM "stanza18.xml">
<!ENTITY poe.jpg SYSTEM "poe.jpg" NDATA jpg>

]>

<poem id="poem1">
	<title>The Raven</title>
	<poet>
		<picture name="poe.jpg"/>
		<name>Edgar Allan Poe</name>
	</poet>

&stanza1;
&stanza2;
&stanza3;
&stanza4;
&stanza5;
&stanza6;
&stanza7;
&stanza8;
&stanza9;
&stanza10;
&stanza11;
&stanza12;
&stanza13;
&stanza14;
&stanza15;
&stanza16;
&stanza17;
&stanza18;

</poem>

> IE 5.0 displays &item1; and &item2; before the front
> matter of the document, then displays it again in
the
> right location.

I definitely did not experience this.

> Even when I take reference to &item1; and &item2;
out of
> the document document and leave the ENTITY
references in
> the document they still display, even though they
aren't
> being referenced.

Very peculiar.  If I may suggest something that might
be obvious, are you definitely *forcing* IE to reload
your page?  For example, simply re-typing the URL in
the Address box won't do it.  It will recall a
previous version from its cache.  That is one
explanation for your "they still display" problem.  If
you suspect this, be sure to press the "Refresh"
button explicity after every file change.

Hope this helps,

Bill



--- "Betty L. Harvey" <harvey@xxxxxxxxxxxxxxxxx>
wrote:
> 
> It works fine without the XSL stylesheet.  When I
> add the
> XSL stylesheet is when I am experiencing the
> problem.
> 
> I knew that file entities don't work with CSS but I
> thought they would work with XSL.  If you have a
> file
> entity and CSS, IE 5.0 only displays the file entity
> and not the rest of the file.
> 
> EXAMPLE:
> 
> 	File without CSS:
> 
> 
>
http://www.eccnet.com/sgmlug/xml-browsers/poem/raven.xml
> 
> 	Same file with CSS stylesheet:
> 
> 
>
http://www.eccnet.com/sgmlug/xml-browsers/poem/raven-css.xml
> 
> 	This is the same file with XSL but I only have 1
> ENTITY.
> 
> 
>
http://www.eccnet.com/sgmlug/xml-browsers/poem/raven-xsl.xml
> 
> Stanza 2 is the file entity.
> 
> Thanks.
> 
> Betty
> 
> 
> 
> On Tue, 28 Sep 1999, Bill Martschenko wrote:
> 
> > Betty,
> > 
> > I'm not seeing this behavior in IE 5.00.2314.1003.
> > 
> > Below are the steps and results.  Did you follow
> > different steps?
> > 
> > Bill
> > 
> > 
> > What I see in IE when I open test.xml:
> > -----------------
> >   <!DOCTYPE myfile (View Source for full
> doctype...)> 
> > - <myfile>
> > - <a>
> >   <a1>aaaa</a1> 
> >   <b1>bbbb</b1> 
> >   </a>
> > - <abc>
> > - <a>
> >   <a1>aaaa</a1> 
> >   <b1>bbbb</b1> 
> >   </a>
> >   </abc>
> > - <def>
> >   "DEF 
> > - <x>
> >   <y1>yyyy</y1> 
> >   <z1>zzzz</z1> 
> >   </x>
> >   "DEF 
> >   </def>
> > - <x>
> >   <y1>yyyy</y1> 
> >   <z1>zzzz</z1> 
> >   </x>
> >   </myfile>
> > -----------------
> > 
> > I'm using the following input files, verbatim:
> > 
> > test.xml
> > -----------------
> > <!DOCTYPE myfile [
> > <!ENTITY item1 SYSTEM "item1.xml">
> > <!ENTITY item2 SYSTEM "item2.xml">
> > ]>
> > <myfile>
> > &item1;
> > <abc>&item1;</abc>
> > <def>
> >   DEF&item2;DEF
> > </def>
> > &item2;
> > </myfile>
> > -----------------
> > 
> > item1.xml
> > -----------------
> > <a>
> > <a1>aaaa</a1>
> > <b1>bbbb</b1>
> > </a>
> > -----------------
> > 
> > item2.xml
> > -----------------
> > <x>
> > <y1>yyyy</y1>
> > <z1>zzzz</z1>
> > </x>
> > -----------------
> > 
> > 
> > 
> > 
> > --- Betty Harvey <harvey@xxxxxxxxxxxxxxxxx> wrote:
> > > I am experiencing strange behaviour from IE 5.0
> and
> > > File Entities.
> > > 
> > > If everything is in the file, no file entities,
> it
> > > looks
> > > beautiful.
> > > 
> > > When I have the following:
> > > 
> > > <!DOCTYPE myfile [
> > > <!ENTITY item1 SYSTEM "item1.xml">
> > > <!ENTITY item2 SYSTEM "item2.xml">
> > > ]>
> > > <myfile>
> > >    .
> > >    .
> > >    .
> > >   &item1;
> > >   &item2;
> > >    .
> > >    .
> > > </myfile>
> > > 
> > > IE 5.0 displays &item1; and &item2; before the
> front
> > > matter of
> > > the document, then displays it again in the
> right
> > > location.  Even
> > > when I take reference to &item1; and &item2; out
> of
> > > the
> > > document document and leave the ENTITY
> references in
> > > the document
> > > they still display, even though they aren't
> being
> > > referenced.
> > > 
> > > Has anyone else experienced this behaviour?  If
> so,
> > > are there
> > > any workarounds?
> > > 
> > > TIA.
> > > 
> > > Betty
> > > 
> > >
> >
>
/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/
> > > Betty Harvey                         | Phone:
> > > 301-540-8251 FAX: 4268
> > > Electronic Commerce Connection, Inc. |
> > > 13017 Wisteria Drive, P.O. Box 333   |
> > > Germantown, Md.  20874               |
> > > harvey@xxxxxxxxxx                    |
> Washington,DC
> > > SGML/XML Users Grp
> > > URL:  http://www.eccnet.com          |
> > > http://www.eccnet.com/sgmlug/
> > >
> >
>
/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\\/\/
> > > 
> > > 
> > >  XSL-List info and archive: 
> > > http://www.mulberrytech.com/xsl/xsl-list
> > > 
> > 
> > __________________________________________________
> > Do You Yahoo!?
> > Bid and sell for free at http://auctions.yahoo.com
> > 
> > 
> >  XSL-List info and archive: 
> http://www.mulberrytech.com/xsl/xsl-list
> > 
> 
> 
>  XSL-List info and archive: 
> http://www.mulberrytech.com/xsl/xsl-list
> 
=== message truncated ===

__________________________________________________
Do You Yahoo!?
Bid and sell for free at http://auctions.yahoo.com


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


Current Thread