calling svg file inside another svg

0 votes
asked Mar 8, 2013 in Closed feature request by anonymous
Good afternoon everyone;

I have a plantuml code like this;

title

 <u>Simple</u> communication example

 on <i>several</i> lines and using <font color=red>html</font>

 This is hosted by <img src=anotherdiagram.svg>

end title

I was wondering is it possible to call anotherdiagram.svg somehow. Obviously, this method  did not work only thing i can do is convert this to jpg or png then call it. However, it would be nice it we can call another svg if plantuml is capeable.

Regards .....

2 Answers

0 votes
answered Mar 10, 2013 by plantuml (294,960 points)

This has been implemented in the beta release : http://dl.dropbox.com/u/13064071/plantuml.jar

Feedback appreciate!

Thanks,

commented Mar 10, 2013 by anonymous
title
  
 This is hosted by <img:another.svg>
end title

Alice -> Bob: Authentication Reqest
Bob -> Alice: Authentication Response
@enduml

still i can not display any image. I am testing with eclipse;

I copy your .jar file and put here

C:\ProgramFiles\eclipse\configuration\org.eclipse.osgi\bundles\351\1\.cp\lib\plantUml    (i believe eclipse plugin uses this library to render.)

however code still gives and error like this;
An error has occured : java.lang.IllegalStateException: Cannot find width
PlantUML (7959) cannot parse result from dot/GraphViz.

I have graphviz installed and i set path from eclipse pluging menu.

Regards ...

Can Eldem
0 votes
answered Mar 11, 2013 by celdem (160 points)
I tested inside of java now. Everything seems fine it was a problem with eclipse plugin i belive or i did something wrong. Thank you for adding this feature.

Regards ...
commented Mar 12, 2013 by anonymous
Hi,
I think they were two problems:
- Patching the Eclipse plugin with a new Plantuml.jar as you try usually does not work (you should wait for the official release)
- And this feature won't work in Eclipse display (because Eclipse show PNG image, and this will only work in SVG). The best we can do is to display a warning in the image saying that the SVG inclusion cannot be done.
Anyway, glad it works for you now!
Regards,
...