|  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
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
Solve the problem:
30 + 26 = ?
Subscribe to this entry?

 [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: Thu Oct 21 22:03:34 2021 UTC