> IDs have to uniquely identify one element in a document, you either > have to actually use unique ones, or you have to put them in separate > documents. What you suggest above is possible though not easy to > author and presumably not well-supported using the 'data' URL scheme: > > <svg xmlns='http://www.w3.org/2000/svg' version='1.1'> > <rect height='100' width='100' fill='url(data:image/svg+xml;base64, > PHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHZlcnNpb249J > zEuMSc+CiAgPGxpbmVhckdyYWRpZW50IGlkPSdleGFtcGxlJz4KICAgIDxzdG9wIG > 9mZnNldD0iMCUiIHN0b3AtY29sb3I9IiNGNjAiIC8+CiAgICA8c3RvcCBvZmZzZXQ > 9IjEwMCUiIHN0b3AtY29sb3I9IiNGRjYiIC8+CiAgPC9saW5lYXJHcmFkaWVudD4K > PC9zdmc+#example)' /> > </svg> > > This should render as a rect with a orange to yellow gradient. However, > I am not aware of a single SVG implementation capable of rendering this > as required by the SVG 1.1 specification. So you will have to find some > way to make your IDs unique.
Hi Bjorn - thanks. I had played with data url scheme a little using the SVG Tiny export option in Illustrator. The difference with that function is that it uses a PNG file for the gradient which obviously is not very effective since we are after a completely vector format. The code you suggested makes sense, but as you said, really can't be properly rendered by any software yet. So I guess it does mean that I am stuck with ensuring unique IDs, but as you can imagine this is a huge task across 1500 symbols, and of course users may also want to add their own SVG graphics together with our symbols into the one diagram/illustration, which may once again result in matching IDs where they are indeed distinct gradients. I would suggest that perhaps this is a deficiency in SVG that will catch many people by surprise and in the case of complicated illustrations, make it very difficult to combine graphics into the one file. Does anyone think this 'problem' is worth reporting to the SVG Working Group? Thanks, Adrian ----- 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: mailto:[EMAIL PROTECTED] mailto:[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/

