My brain stopped - please give me the code
http://www.sst-svg.co.uk/movezup.svg - works
http://www.sst-svg.co.uk/moveforeign.svg - does not !!
Please have a peep at the source of the second one and give me a workable idea.
(am happy to put the 'foreign' script in a oversize rect to create a
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
I can't tell you if this is possible as I've never tried to define external
entities. However, to make the local entities in you svg, you would put
them in the DOCTYPE like so:
!DOCTYPE svg [
!ENTITY blue FF
!ENTITY green #00FF00
!ENTITY red #FF
]
and then refer to them as red;
Last I checked, you could get it by doing something like:
var svgDoc = document.getElementById(myEmbed).getSVGDocument();
You would then interact with the SVG by using the svgDoc variable in the
same manner you would from a script inside the SVG.
Marty
On Sat, Nov 17, 2012 at 9:25 PM, Pranav
Thanx for that, however I do have internal entities working just fine. Looking
for help specifically with externally-defined ones.
âKen Nellis
--- In svg-developers@yahoogroups.com, Marty Sullivan dark3251@... wrote:
I can't tell you if this is possible as I've never tried to define external
Most browsers do well with SVG. SVG support in browsers has improved
dramatically over the last 12 months. The key thing is to have and
support a standard. HTML5 isn't any different that SVG in this regard.
If compatibility is important, then test the code with the top 4 browsers.
By the way,
--- In svg-developers@yahoogroups.com, Pranav Lal pranav.lal@... wrote:
Hi Marty,
Many thanks for your message.
snip you can
access the svg dom directly from the html script if you prefer.
PL] Do you have any pointers on how to do this?
Pranav
Hi Pranav,
I think we do the same thing
7 matches
Mail list logo