Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   XML (http://www.velocityreviews.com/forums/f32-xml.html)
-   -   sgv in xml (http://www.velocityreviews.com/forums/t168665-sgv-in-xml.html)

n.emami@gmail.com 01-26-2005 09:26 AM

sgv in xml
 
L.S.,

I am a new user of xml. I would like to present a documentation of a
software system on internet. It is in html and i would like to try it
with XML. There are some pictures (to show the process and the lines to
give the input/output) in the document. I know that i can use SVG to
get the picture, but I don't know how i can combine them! For example I
have a 'a.xml' file. Is it possible to emded the dfinition of svg
inside the 'a.xml' file?
<?xml version="1.0"?>
<page>
.....
.....
<svg circle=...
....
</svg>

</page>

Or I have to write the picture in other file 'p.svg' en combine them!
Would do somebody like to help me?

With redrds,
Nader


Martin Honnen 01-26-2005 04:25 PM

Re: sgv in xml
 


n.emami@gmail.com wrote:


> I am a new user of xml. I would like to present a documentation of a
> software system on internet. It is in html and i would like to try it
> with XML. There are some pictures (to show the process and the lines to
> give the input/output) in the document. I know that i can use SVG to
> get the picture, but I don't know how i can combine them! For example I
> have a 'a.xml' file. Is it possible to emded the dfinition of svg
> inside the 'a.xml' file?
> <?xml version="1.0"?>
> <page>
> ....
> ....
> <svg circle=...
> ...
> </svg>
>
> </page>
>
> Or I have to write the picture in other file 'p.svg' en combine them!


It will very much depend on the viewer whether your approach works,
Mozilla has custom builds that support SVG embedded in X(HT)ML, of
course you have to use the proper namespaces then on the XHTML and SVG
elements, otherwise the browser can't know how to deal with your XML.
IE/Win with Adobe SVG viewer has support for SVG embedded in HTML, check
the Adobe SVG viewer and its documentation.

You can find more about SVG here:
<http://wiki.svg.org/>

There is also a group on SVG on http://groups.yahoo.com/ where you might
find more help on strategies how to use XML combined with SVG and have
it rendered on as many user agents as possible.


--

Martin Honnen
http://JavaScript.FAQTs.com/

ajm 01-27-2005 01:52 PM

Re: sgv in xml
 
to disply SVG on the web you need either

* assume embedded supoprt (e.g., plug-ins) as already cited or

* convert your svg to a more widely appreciated format (e.g.,
rasterize the image as PNG or JPEG) etc. and link this
into the HTML (e.g., using href or similar)

the latter is achievable with the appropriate API etc.

hth,
ajm.

Martin Honnen <mahotrash@yahoo.de> wrote in message news:<41f7c497$0$17600$9b4e6d93@newsread4.arcor-online.net>...
> n.emami@gmail.com wrote:
>
>
> > I am a new user of xml. I would like to present a documentation of a
> > software system on internet. It is in html and i would like to try it
> > with XML. There are some pictures (to show the process and the lines to
> > give the input/output) in the document. I know that i can use SVG to
> > get the picture, but I don't know how i can combine them! For example I
> > have a 'a.xml' file. Is it possible to emded the dfinition of svg
> > inside the 'a.xml' file?
> > <?xml version="1.0"?>
> > <page>
> > ....
> > ....
> > <svg circle=...
> > ...
> > </svg>
> >
> > </page>
> >
> > Or I have to write the picture in other file 'p.svg' en combine them!

> It will very much depend on the viewer whether your approach works,
> Mozilla has custom builds that support SVG embedded in X(HT)ML, of
> course you have to use the proper namespaces then on the XHTML and SVG
> elements, otherwise the browser can't know how to deal with your XML.
> IE/Win with Adobe SVG viewer has support for SVG embedded in HTML, check
> the Adobe SVG viewer and its documentation.
> You can find more about SVG here:
> <http://wiki.svg.org/>
> There is also a group on SVG on http://groups.yahoo.com/ where you might
> find more help on strategies how to use XML combined with SVG and have
> it rendered on as many user agents as possible.



All times are GMT. The time now is 08:31 AM.

Powered by vBulletin®. Copyright ©2000 - 2013, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57