This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: xsl:output help or building svg from xslt


Here's one that works for me:

  <xsl:output standalone="yes" doctype-system="svg-19990812.dtd"
             media-type="image/svg" indent="yes"/>

The indent is not required.

I'm using this in combination with the Oracle XSQL Pages
publishing framework which picks up the media-type from
the transforming stylesheet and sets it on the servlet output
stream. I found that earlier versions of the plug-in did
not like having the character-set information set along
with the mime type, so keep that in mind if you're doing
that as part of your servlet's response.

______________________________________________________________
Steve Muench, Lead XML Evangelist & Consulting Product Manager
BC4J & XSQL Servlet Development Teams, Oracle Rep to XSL WG
Author "Building Oracle XML Applications", O'Reilly
http://www.oreilly.com/catalog/orxmlapp/

----- Original Message ----- 
From: <Larry_Mason@i2.com>
To: <xsl-list@mulberrytech.com>
Sent: Tuesday, September 05, 2000 7:12 PM
Subject: xsl:output help or building svg from xslt


| 
| I need some assistance on the syntax for xsl:output to define the mime type
| of my resultant document which contains SVG.  If I save the result as a
| file with extension svg, the browser processes the document properly, ie
| invokes the Adobe plugin.  However, the same document as returned from my
| servlet (and not save to disk) simply displays as XML in IE5 not as a
| image.  From the w3c site, I believe the mime type is image/svg-xml.  My
| guess is to set the media-type in the xsl:ouput tag.  Anyone had success
| doing so?  I'm using XT.
| Cheers!
| Larry Mason
| --------------------------------------------------------------------------------------
| 
| Remember 2 wrongs don't make a right, but 3 lefts do.
| --------------------------------------------------------------------------------------
| 
| 
| 
| 
|  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
| 


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]