LISTSERV mailing list manager LISTSERV 15.5

Help for XML-L Archives


XML-L Archives

XML-L Archives


View:

Next Message | Previous Message
Next in Topic | Previous in Topic
Next by Same Author | Previous by Same Author
Chronologically | Most Recent First
Proportional Font | Monospaced Font

Options:

Join or Leave XML-L
Reply | Post New Message
Search Archives


Subject: Re: SYSTEM file references
From: Robert Wakeling <[log in to unmask]>
Reply-To:General discussion of Extensible Markup Language <[log in to unmask]>
Date:Fri, 25 Sep 1998 09:24:34 +0200
Content-Type:text/plain
Parts/Attachments:
Parts/Attachments

text/plain (58 lines)


Thanks for the help and corrections

> The SYSTEM keyword goes in entity declarations, not element
> declarations. Does the following do what you need?
>
>   <?xml version="1.0"?>
>   <!DOCTYPE Introduction [
>   <!NOTATION GIF SYSTEM "GIF">
>   <!ENTITY logofile SYSTEM "mygif.gif" NDATA GIF>

My problem is that this declares the file name once and for all in the DTD.
I want each document to use the same DTD but to specify its own local file name for its logo. I hoped parameter entity references might help! Or do I completely misunderstand what is going on here?

>   <!ELEMENT Introduction (logo,par+)>
>   <!ELEMENT par (#PCDATA)>
>   <!ELEMENT logo EMPTY>
>   <!ATTLIST logo src ENTITY #REQUIRED>
>   ]>
>   <Introduction>
>   <logo src="logofile"/>
>   <par>Hello!</par>
>   </Introduction>
>
> Bob DuCharme          www.snee.com/bob           <bob@
> snee.com>  "The elements be kind to thee, and make thy
> spirits all of comfort!" Anthony and Cleopatra, III ii
>
>
>
> > ----------
> > From:         Robert Wakeling[SMTP:[log in to unmask]]
> > Sent:         Thursday, September 24, 1998 6:03 AM
> > To:   [log in to unmask]
> > Subject:      SYSTEM file references
> >
> > I would like to indicate, in a DTD, where documents can include a logo
> > as a gif
> > file. Something like this
> >
> > <!ELEMENT Introduction (Logo, #PCDATA) >
> > <!ELEMENT Logo
> >         SYSTEM "here is where you put your local gif file reference"
> >         NDATA gif>
> >
> > Can I declare a parameter entity reference such as
> >
> > <!ELEMENT % LogoFileRef
> >
> > and reference it in the DTD for use as specific local system URI like
> > this?
> >
> > <!ELEMENT Introduction (Logo, #PCDATA) >
> > <!ELEMENT Logo
> >         SYSTEM " % LogoFileRef "
> >         NDATA gif>
> >
> > Or is there a more straightforward way to do this?
> >

Back to: Top of Message | Previous Page | Main XML-L Page

Permalink



LISTSERV.HEANET.IE

CataList Email List Search Powered by the LISTSERV Email List Manager