>>>>> "HS" == Huang Sheng <[EMAIL PROTECTED]> writes:

HS> I am doing a project which is a cross-media content management
HS> system. The basic component is an SVG-based Applet. Now my
HS> application can work with SVG, CSS and JavaScript, but I can�t
HS> make the HTML style link work. Since our goal is to display
HS> everything on the JSVGCanvas, when a user clicks on a link in an
HS> SVG file which is in the form of , we want to display the HTML
HS> code on the JSVGCanvas. 

    Currently JSVGCanvas only displays SVG (not really surprising
given it's name :).  We have in the past discussed having Squiggle use
the JTextArea/Pane class to display HTML.  The problem is that this
class is really not a very complete HTML viewer.  This may be
acceptable for your use case (if you can control the HTML) but isn't a
very good general solution.

    In this case you would replace the JSVGCanvs with the JTextArea
widget.  I think it would be a mistake to try and get JSVGCanvas to
render all types of content.

HS> But the error I got is: SVG Error: The current document is unable
HS> to create an element of the requested type
HS> (namespace:http://www.w3.org/2000/svg,name:html).
HS> java.io.IOException: The current document is unable to create an
HS> element of the requested type (namespace:
HS> http://www.w3.org/2000/svg, name: html).  at
HS> org.apache.batik.dom.util.SAXDocumentFactory.createDocument(Unknown
HS> Source) at
HS> org.apache.batik.dom.util.SAXDocumentFactory.createDocument(Unknown
HS> Source) at
HS> org.apache.batik.dom.svg.SAXSVGDocumentFactory.createDocument(Unknown
HS> Source) at
HS> org.apache.batik.dom.svg.SAXSVGDocumentFactory.createSVGDocument(Unknown
HS> Source) at
HS> org.apache.batik.bridge.DocumentLoader.loadDocument(Unknown
HS> Source) at
HS> org.apache.batik.swing.svg.SVGDocumentLoader.run(Unknown Source)
HS> Does Batik currently support this kind of functionality? I doubt
HS> about this because I also tested with Squiggle browser of Batik
HS> distribution and it also did not work. Since this functionality is
HS> essential to our project, could you give me some suggestion to
HS> work around this question if Batik does not support? Thank you
HS> very much for your help.

HS> With best regards, William

HS> _________________________________________________________________
HS> MSN 8 with e-mail virus protection service: 2 months FREE*
HS> http://join.msn.com/?page=features/virus


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



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

Reply via email to