Re: Re: external entities

Marty Sullivan <[email protected]>
Newsgroups gmane.text.xml.svg.devel
Message-ID <CAK7bDb+3bVZmmkQiP7L3D+V1xR+FnSN02JP7s-jmkzXDT_o7PQ@mail.gmail.com>
While you would be importing an xml file, you are doing so via a DTD. That
specific function is probably not supported by browsers.

On Sat, Dec 1, 2012 at 10:12 AM, Kenneth N <[email protected]> wrote:

> **
>
>
> I appreciate the response, Robert. I get why to avoid DTDs, but I wasn't
> aware that external entities had to be defined in a DTD. The syntax for
> importing an external entity reference...
>
> <!ENTITY blue SYSTEM "colors.xml">
>
> ...suggests a plain-vanilla XML file, not a DTD. Am I wrong about this?
>
> â€"Ken Nellis
>
>
> --- In [email protected], "Robert Longson" <longsonr@...>
> wrote:
> >
> > This is not going to work, at least not in a browser. See
> http://hsivonen.iki.fi/no-dtd/ for why it's a bad idea.
> >
> > Best regards
> >
> > Robert.
> >
> > --- In [email protected], Kenneth Nellis <nellisks@> wrote:
> > >
> > > I've tried without success to get external entities to work. For
> example, let's say I want to define "blue" in a shared file as #00247D and
> then, in multiple, separate SVG files, reference the shared definition (as
> "&blue;").
> > >
> > > I get that the SVG document that references the color would pull in
> the definition with something like the following in its DOCTYPE:
> > >
> > > <!ENTITY blue SYSTEM "colors.xml">
> > >
> > > And "blue" would be defined in file colors.xml, but I haven't been
> able to figure out how to define "blue" in file colors.xml. Suggestions
> would be most appreciated!
> > >
> > > Ideally, I wouldn't need separate <!ENTITY�.> references in each SVG
> for each color, but could simply refer (somehow) to colors.xml and pull in
> all entity definitions in colors.xml.
> > >
> > > �Ken Nellis
> > >
> >
>
>  
>


[Non-text portions of this message have been removed]



------------------------------------

-----
To unsubscribe send a message to: [email protected]
-or-
visit http://groups.yahoo.com/group/svg-developers and click "edit my membership"
----Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/svg-developers/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/svg-developers/join
    (Yahoo! ID required)

<*> To change settings via email:
    [email protected] 
    [email protected]

<*> To unsubscribe from this group, send an email to:
    [email protected]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.