W3C home > Mailing lists > Public > www-svg@w3.org > May 2000

Re: xml to svg using xslt

From: Pankaj Kamthan <kamthan@cs.concordia.ca>
Date: Wed, 31 May 2000 13:45:38 -0400
To: www-svg@w3.org
Message-ID: <39351782.8518.EEEE9E@localhost>
Justin,

"How can I use xslt to convert xml to svg?" 

By XML above, I am assuming you mean an arbitrary instance based on XML
syntax. XSLT Specification provides an example (which will need to be tuned 
a bit) in Appendix D.

"It seems to come out as text or html and not an svg mimi type."

There could be several possibilities:

1. The output depends on the XSLT style sheet; so you should make sure that
it (including attributes for XPath expressions) corresponds to SVG and not
to other formats.

2. If a server is being used, it is also possible that your MIME-types file (e.g., 
.mime.types in Unix) may not be configured to serve SVG. 

3. If the transformation is being done on the client, make sure you are NOT 
using an older implementation of XSLT else it may render the markup directly. 
For example, with IE5, you will need to install the separately available MSXML 
SDK (MSXML3) to override the one that is shipped with the browser.

Hope this helps.

Pankaj Kamthan
Received on Wednesday, 31 May 2000 13:46:51 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 5 November 2012 23:52:47 GMT