Hi Jan,
Perhaps you'll find the following quote helpful.
>>>
mystyle.css
rect {
fill: red;
stroke: blue;
stroke-width: 3
}
SVG file referencing mystyle.css
<?xml version="1.0" standalone="no"?>
<?xml-stylesheet href="mystyle.css" type="text/css"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN"
"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg xmlns="http://www.w3.org/2000/svg" version="1.1"
width="10cm" height="5cm" viewBox="0 0 1000 500">
<rect x="200" y="100" width="600" height="300"/>
</svg>
<<<
<http://www.w3.org/TR/SVG/styling.html#StylingWithCSS>
____________________________________________________________
I must be travelling,
Jason
tc+ ?23 ?mgt mt tne ?t20 t4++ ?t5 ?tp tg+ ?th ?to
ru- ge++ 3i c++ jt- au+ ls pi+ ta+ he+
kk++ hi+ as+ va+ dr ?ith vr ne so+ zh vi da sy
----- Original Message ----
> From: honyk <[email protected]>
> To: [email protected]
> Sent: Fri, July 13, 2012 1:39:20 PM
> Subject: [svg-developers] Common defs for multiple images
>
> Dear All,
>
> I have several images with common css styles, markers and symbols. To avoid
> manual editing all these files on any future change I'd rather make a link
> to this stuff.
>
> My attempt using xi:include (from XML world) seems to be not supported by
> common tools (browsers, rasterizers).
>
> <svg xmlns="http://www.w3.org/2000/svg"
> xmlns:xlink="http://www.w3.org/1999/xlink" width="100" height="100"
> viewBox="0 0 100 100" version="1.1">
> <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="defs.xml"/>
> <path d="M0 50h100" class="dashed"/>
> </svg>
>
> I could resolve these includes using the xmllint tool first, but I'd like to
> avoid this extra step (and to keep two versions of each file).
>
> Are there any more convenient alternatives?
>
> Thanks, Jan
>
>
>
> ------------------------------------
>
> -----
> 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 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/