From: aragon at phat dot za dot net Operating system: PHP version: 5.2.6 PHP Bug Type: Feature/Change Request Bug description: Create XLTProcessor properties for access libxslt stylesheet output properties
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. :) -- Edit bug report at http://bugs.php.net/?id=46200&edit=1 -- Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=46200&r=trysnapshot52 Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=46200&r=trysnapshot53 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=46200&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=46200&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=46200&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=46200&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=46200&r=needscript Try newer version: http://bugs.php.net/fix.php?id=46200&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=46200&r=support Expected behavior: http://bugs.php.net/fix.php?id=46200&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=46200&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=46200&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=46200&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=46200&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=46200&r=dst IIS Stability: http://bugs.php.net/fix.php?id=46200&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=46200&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=46200&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=46200&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=46200&r=mysqlcfg