Re: [xslt] Getting the media type



On Sat, 9 Jun 2001, Daniel Veillard wrote:

> On Thu, May 31, 2001 at 09:15:44PM +0100, Matt Sergeant wrote:
> > The mediaType entry in the xsltStylesheetPtr struct doesn't seem to get
> > filled in when doing xsltParseStylesheetDoc() (Not that it does with other
> > methods, I'm just not sure if it does or not). Is there some other special
> > way I'm supposed to get the media type from the stylesheet, other than
> > traversing the DOM or using the XPath API on the doc?
>
>   Hum, right I didn't implement it, though I allocated some space in the
> structure for it ... sorry one more thing TODO.

For now I solved it by setting the stylesheet's method to HTML when the
resultset's DOM->type == XML_HTML_DOCUMENT_NODE in the call to
$stylesheet->transform().

-- 
<Matt/>

    /||    ** Founder and CTO  **  **   http://axkit.com/     **
   //||    **  AxKit.com Ltd   **  ** XML Application Serving **
  // ||    ** http://axkit.org **  ** XSLT, XPathScript, XSP  **
 // \\| // ** mod_perl news and resources: http://take23.org  **
     \\//
     //\\
    //  \\





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]