Yes. the svg content is not stored in the embed.svg.

can you make it?

Thanks

On Thu, Jan 6, 2011 at 5:28 PM, Hans Hagen <pragma@wxs.nl> wrote:
On 6-1-2011 9:02, Wolfgang Schuster wrote:

Am 06.01.2011 um 04:42 schrieb Anand Raj:

Hi,

I have embed tags in my xhtml can i render it in my pdf.

How should I form the .tex file to handle this?

<embed type='image/svg+xml' align='middle' width='200' height='200' src='/javascript/d.svg' script='initPicture(-.5,5,-.5,5);path([[0,0],[1,4],[4,4],[3,0],[0,0]]);text([2.5,4],"44","above");text([3.5,2],"44","right");stroke="red";fontfill="red";line([1,0],[1,4]);text([1,2],"?","right");' />

Write the whole block to a external file and read import it them with \externalfigure.

\startxmlsetups xml:embed
   \setbuffer[embed]\xmlflush{#1}\endbuffer
   \savebuffer[embed][embed.svg]
   \externalfigure[embed.svg]
\stopxmlsetups

remind me to make a \xmltofile some time

-----------------------------------------------------------------
                                         Hans Hagen | PRAGMA ADE
             Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
                                            | www.pragma-pod.nl
-----------------------------------------------------------------

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________