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>

"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 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 8 March 2017 09:46:48 UTC