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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
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
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 17:01:32 2024 UTC