php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #46200 Create XLTProcessor properties for access libxslt stylesheet output properties
Submitted: 2008-09-30 02:33 UTC Modified: 2016-12-31 00:31 UTC
From: aragon at phat dot za dot net Assigned:
Status: Open Package: XSLT related
PHP Version: 5.2.6 OS:
Private report: No CVE-ID: None
 [2008-09-30 02:33 UTC] aragon at phat dot za dot net
Description:
------------
When performing an XSLT transformation it is useful to read the attributes of the <xsl:output> tag, most notably for me the media-type attribute.  Libxslt provides an interface to these attributes in the xsltStylesheetPtr object returned by xsltStylesheetDoc():

xmlChar *method;            /* the output method */
xmlChar *methodURI;         /* associated namespace if any */
xmlChar *version;           /* version string */
xmlChar *encoding;          /* encoding string */
int omitXmlDeclaration;     /* omit-xml-declaration = "yes" | "no" */
int standalone;             /* standalone = "yes" | "no" */
xmlChar *doctypePublic;     /* doctype-public string */
xmlChar *doctypeSystem;     /* doctype-system string */
int indent;                 /* should output being indented */
xmlChar *mediaType;         /* media-type string */

The only way to access them in PHP is to process the stylesheet document as an XML document.  It'd be really useful if PHP's XSLTProcessor had a direct interface to these C properties. :)


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2016-12-31 00:31 UTC] cmb@php.net
-Package: Feature/Change Request +Package: XSLT related
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Nov 21 13:01:29 2024 UTC