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]
Other format: [Raw text]

RE: SVG, no actual output


> 
> > > ... err... you have an doctype declaration for SVG in you XSLT
> > > stylesheet... err... why? If your XSLT processor validated the
> > > stylesheet, this would result in an error. 
> > 
> > Took the example from da web. Using XalanC and it complaints about
> > nothing.
> 
> Probably no XSLT processor tries to validate the stylesheet, but the
> example is still horribly wrong.
> 
> > > What's the mime-type of the document when you're returning 
> > it (from the
> > > server?)? text/plain?
> > 
> > When using IE on windows with svg-viewer plug-in it says that
> > it is SVG Document.
> > 
> > When using Mozilla 0.9.9 says that it is text/plain.
> 
> Then it's text/plain and is treated accordingly; change the Mime-type
> image/svg+xml or application/xml etc. so that Mozilla will process it as
> XML.
> 
I tried to change mime-type by:

<xsl:output method="xml"
   media-type="application/xml"/>


<xsl:output method="xml"
   media-type="image/svg+xml"/>

<xsl:output method="xml"
   media-type="image/svg-xml"/>

And still the output is svg code. 

Jarkko


****************************************************************
Jarkko Moilanen          "Erehtyminen on inhimillista, 
Researcher/ ITCM         mutta todella suuret mokat 
jm60697@uta.fi           vaativat tietokoneen käyttöä."         
www.uta.fi/~jm60697                                           
GSM: +358 50 3766 927                                         
****************************************************************
* ITCM | Information Technology and Crisis Management            
* http://www.itcm.org                                            
****************************************************************

 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]