It simply loades up the test.svg file. It contains a use tag that *should* invoke my protocol handler. It seems to, but the streams are never called on the parsedURLData objects.
If someone could take a look at it, I'd appreciate it!
Thanks!
Birch
On 2/14/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]
> wrote:
Hi JB,
J B <[EMAIL PROTECTED] > wrote on 02/12/2006 03:08:36 PM:
> Guess I should change the scope of my question. I see how pluggin in my
own
> protocol handler works for loading images. Can I hook in my own
protocol
> handler the loading resource with a <use>?
Yes. Since there are a number of 'openStream' methods I suspect
you are missing an important one. The SAXSVGDocumentHandler uses
InputStream is =
purl.openStream(MimeTypeConstants.MIME_TYPES_SVG);
To open the stream.
>
> Birch
> On 2/11/06, J B <[EMAIL PROTECTED]> wrote:
> Yes, but with my own protocol handler, I would not necesarily use it
that way.
> The method: public ParsedURLData parseURL(String arg0) gets called, but
none
> of the methods overridden to return the stream of the resource are
called.
> But when used with the <image> tag, they are.
>
> Birch
>
> On 2/11/06, Andrew Plotkin < [EMAIL PROTECTED]> wrote:
> On Sat, 11 Feb 2006, J B wrote:
>
> > After a bit of reading, I have registered my own protocol handler and
can
> > successfully load up images with it (<image id="foo"
xlink:href="">> > lib.png" width="50" height="50"/>). However, if I do this (<use
id="foo"
> > xlink:href="" it does not work.
>
> Have you tried using a specific object from the destination file?
>
> <use id="foo" xlink:href="" lib.svg#id" />
>
> --Z
>
> --
> "And Aholibamah bare Jeush, and Jaalam, and Korah: these were the
borogoves..."
> *
> It's a nice distinction to tell American soldiers (and Iraqis) to die in
> Iraq for the sake of democracy (ignoring the question of whether it's
> *working*) and then whine that "The Constitution is not a suicide pact."
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
SVGFrame.java
Description: Binary data
test.svg
Description: image/svg
library.svg
Description: image/svg
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
