Guil,

more or less a holding response for now. This is quite a tricky issue to even 
reproduce and I am swamped with other work right now. I guess the underlying 
problem is that some SVG properties are not mapped correctly to the SVG SWP 
vocabulary, or maybe they are outside of the SVG tiny profile that we currently 
support. The other issue is that of namespace prefixes - I believe this is 
something that the browsers should be able to handle indifferently. The greater 
question is that SWP currently requires vocabularies that define classes and 
properties for all XML elements used in the documents. I believe I should relax 
this restriction and just allow people to instantiate any XML tag, including 
SVG, in whatever syntax they like. But having said this, I don't see a good way 
forward right now on your particular problem.

Holger


On Sep 25, 2011, at 4:31 PM, Guilherme Scomparim wrote:

> Hi all,
> 
> I have been trying to build a web page with Drag and Drop
> Functionality using SVG and JavaScript in SWP and also pure SVG
> 
> The page built using SWP displays the correct svg however the Drag and
> Drop was not working. I manage to fix the same page outside composer
> and save it in SVG and the drag and drop works.
> 
> The fixes are very simple, and I was wondering if there is a way to
> fix it inside Composer instead of changing the svg file?
> 
> I am attaching the two files to this email.
> 
> The first thing, I had to delete the svg: namespace in all tags on the
> document.
> 
> The second was to delete the :svg in front of the xmlns inside the svg
> tag.
> 
> The third was to insert the events <onload="Init(evt)"
> onmousedown="Grab(evt)" onmousemove="Drag(evt)" onmouseup="Drop(evt)>
> that were inserted in the prototype svg:Svg Tag however were not
> present on the final svg svg tag
> 
> Here is svg tag that is working:
> 
> <svg xmlns="http://www.w3.org/2000/svg"; xmlns:xlink="http://www.w3.org/
> 1999/xlink" height="100%" width="100%" onload="Init(evt)"
> onmousedown="Grab(evt)" onmousemove="Drag(evt)" onmouseup="Drop(evt)>
> 
> Here is the code on the ui:prototype property on the page:
> 
>    <svg:Svg onload="Init(evt)" onmousedown="Grab(evt)"
> onmousemove="Drag(evt)" onmouseup="Drop(evt)" svg:height="100%"
> svg:width="100%">
> 
> Thanks in advance,
> Guil
> 
> -- 
> You received this message because you are subscribed to the Google
> Group "TopBraid Suite Users", the topics of which include TopBraid Composer,
> TopBraid Live, TopBraid Ensemble, SPARQLMotion and SPIN.
> To post to this group, send email to
> [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/topbraid-users?hl=en

-- 
You received this message because you are subscribed to the Google
Group "TopBraid Suite Users", the topics of which include TopBraid Composer,
TopBraid Live, TopBraid Ensemble, SPARQLMotion and SPIN.
To post to this group, send email to
[email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/topbraid-users?hl=en

Reply via email to