RE: [svg-developers] Common defs for multiple images

2012-07-14 Thread honyk
Hi Jason,

  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).

 Perhaps you'll find the following quote helpful.
 ...
 ?xml version=1.0 standalone=no?
 ?xml-stylesheet href=mystyle.css type=text/css?
 ...

wow, but this solves just part of my problem. I also need to share markers
(line ending arrows in my case).

I could eventually reference them using an external file, but this doesn't
work in the WebKit (which is a must for me).

path d=M50 100h100 style=stroke: black; stroke-width: 1; marker-start:
url(defs.svg#arrowStart);/

Any idea?

Jan






-
To unsubscribe send a message to: svg-developers-unsubscr...@yahoogroups.com
-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:
svg-developers-dig...@yahoogroups.com 
svg-developers-fullfeatu...@yahoogroups.com

* To unsubscribe from this group, send an email to:
svg-developers-unsubscr...@yahoogroups.com

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/



Re: [svg-developers] Common defs for multiple images

2012-07-14 Thread Jason Barnabas
Hi Jan,

I was just heading for bed when I saw your post. I'm 
wondering if you had tried simply including them in an SVG 
and including it in your main SVG as a SVG fragment?

I don't know if it would work. :-D

Maybe after some sleep I'll thing of something better.
 


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 j.tosov...@email.cz
 To: svg-developers@yahoogroups.com
 Sent: Fri, July 13, 2012 11:28:20 PM
 Subject: RE: [svg-developers] Common defs for multiple images
 
 Hi Jason,
 
   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).
 
   Perhaps you'll find the following quote helpful.
  ...
  ?xml  version=1.0 standalone=no?
  ?xml-stylesheet  href=mystyle.css type=text/css?
  ...
 
 wow, but this solves  just part of my problem. I also need to share markers
 (line ending arrows in  my case).
 
 I could eventually reference them using an external file, but  this doesn't
 work in the WebKit (which is a must for me).
 
 path  d=M50 100h100 style=stroke: black; stroke-width: 1;  marker-start:
 url(defs.svg#arrowStart);/
 
 Any  idea?
 
 Jan
 
 
 
 
 
 
 -
 To  unsubscribe send a message to: svg-developers-unsubscr...@yahoogroups.com
 -or-
 visit http://groups.yahoo.com/group/svg-developers and click edit my  
membership
 Yahoo! Groups Links
 
 
 
 




-
To unsubscribe send a message to: svg-developers-unsubscr...@yahoogroups.com
-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:
svg-developers-dig...@yahoogroups.com 
svg-developers-fullfeatu...@yahoogroups.com

* To unsubscribe from this group, send an email to:
svg-developers-unsubscr...@yahoogroups.com

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/



Re: [svg-developers] Common defs for multiple images

2012-07-13 Thread Jason Barnabas
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 j.tosov...@email.cz
 To: svg-developers@yahoogroups.com
 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: svg-developers-unsubscr...@yahoogroups.com
 -or-
 visit http://groups.yahoo.com/group/svg-developers and click edit my  
membership
 Yahoo! Groups Links
 
 
 
 




-
To unsubscribe send a message to: svg-developers-unsubscr...@yahoogroups.com
-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:
svg-developers-dig...@yahoogroups.com 
svg-developers-fullfeatu...@yahoogroups.com

* To unsubscribe from this group, send an email to:
svg-developers-unsubscr...@yahoogroups.com

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/