|  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
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: aragon at phat dot za dot net
New email:
PHP Version: OS:


 [2008-09-30 02:33 UTC] aragon at phat dot za dot net
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. :)


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2016-12-31 00:31 UTC]
-Package: Feature/Change Request +Package: XSLT related
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Mon Sep 20 17:03:52 2021 UTC