>>>>> "PM" == Pedro Morais <[EMAIL PROTECTED]> writes:

PM> Currently, the SVG file is self contained, that is, it has no
PM> external references.

PM> [...] I'd like to define the symbols in a separe file, and use
PM> references to that file in the resulting SVGs.  That way the SVGs
PM> symbols could be modified without reapplying the stylesheet.

PM> However, since the SVG is read from a stream, it can't resolve the
PM> references to external files! 

    Well I have two suggestions:

    1) I just committed a fix that should make it possible to
       reference the symbol file with an absolute URI.  So if that is
       acceptable you should just need to get a copy of current CVS
       Batik.

    2) After building the document from the stream set the document's
       uri with SVGOMDocument.setURLObject().

    I think #1 is the 'correct' way given that technically your
document doesn't have a real location associated with it, but I think
#2 will work.

PM> What I'd like to do is set some handler in the transcoder, so that
PM> when it needs to access, let's say, businessobjects.svg I can open
PM> the stream and give the file back to the trancoder.  Is it
PM> possible?  Or is there a simpler way to do it?

PM> Thanks in advance.  

    Hope I earned it ;)

PM> (by the way, great work, guys!)

    Thanks.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to