(c) 2005 PD Inc LICENSE# 20050531P00 http://public.pdinc.us/rpms/php-xslt
PHP SRC RPM patch to enable XSLT and create the php-xslt RPM
--- SPECS/php.spec.orig-4.3.2-24.ent	2005-07-31 13:45:32.000000000 -0400
+++ SPECS/php.spec	2005-07-31 13:46:21.000000000 -0400
@@ -1,6 +1,10 @@
 # To recompile using the Oracle Instant Client libraries, use:
 #   rpmbuild --rebuild --define 'oracle 1' php-4.3.2-X.ent.src.rpm
+# To recompile enabling the xslt libraries, use:
+#   rpmbuild --rebuild --define 'xslt 1' php-4.3.2-X.ent.src.rpm
+# Portions (c) 2005 PD Inc http://www.pdinc.us LICENSE 20050531P00
 %{!?oracle:%define oracle 0}
+%{!?xslt:%define xslt 0}
 
 Summary: The PHP HTML-embedded scripting language. (PHP: Hypertext Preprocessor)
 Name: php
@@ -63,6 +67,10 @@
 Patch59: php-4.3.2-CAN-2005-1921.patch
 Patch60: php-4.3.2-shtool.patch
 
+%if %{xslt}
+Patch99: php-4.3.2-xslt.patch
+%endif
+
 BuildRoot: %{_tmppath}/%{name}-root
 
 BuildRequires: bzip2-devel, curl-devel >= 7.9, db4-devel, expat-devel, freetype-devel
@@ -192,6 +200,21 @@
 support for accessing OCI8 databases to PHP.
 %endif
 
+%if %{xslt}
+%package xslt
+Group: Development/Languages
+Summary: A XSLT module for PHP.
+BuildRequires: js, js-devel, sablotron, sablotron-devel
+Requires: php = %{version}-%{release}
+#Provides: 
+AutoReq: 0
+Requires: js, sablotron
+
+%description xslt
+This PHP extension provides an API to XSLT transformations. Currently this extension only supports the 
+Sablotron library from the Ginger Alliance. 
+%endif
+
 %prep
 %setup -q
 %patch1 -p1 -b .apache2
@@ -239,6 +262,10 @@
 %patch14 -p1 -b .serialperf
 %patch15 -p1 -b .serial64
 
+%if %{xslt}
+%patch99 -p1 -b .xslt
+%endif
+
 # Prevent %doc confusion over LICENSE & Zend/LICENSE
 cp Zend/LICENSE Zend/ZEND_LICENSE
 
@@ -358,6 +385,11 @@
 	--enable-discard-path \
 	--enable-track-vars \
 	--enable-trans-sid \
+%if %{xslt}
+        --enable-xslt=shared \
+        --with-xslt-sablot=shared \
+        --with-sablot-js=shared \
+%endif
 	--enable-yp \
 	--enable-wddx \
 %ifarch %{ix86} s390 ppc
@@ -438,8 +470,11 @@
 %if %{oracle}
 ocimod=oci8
 %endif
+%if %{xslt}
+xsltmod=xslt
+%endif
 # Generate files lists and stub .ini files for each subpackage
-for mod in pgsql mysql odbc imap ldap ${ocimod}; do
+for mod in pgsql mysql odbc imap ldap ${ocimod} ${xsltmod}; do
     cat > $RPM_BUILD_ROOT%{_sysconfdir}/php.d/${mod}.ini <<EOF
 ; Enable ${mod} extension module
 extension=${mod}.so
@@ -463,6 +498,7 @@
 
 # remove extension= lines for packaged modules from php.ini (#112470)
 %triggerpostun -- php < 4.3.2-9.ent
+# we don't remove xslt from the ini file since its first existance Version/Revision is in 4.3.2-23.ent
 test -x %{_bindir}/perl && %{_bindir}/perl -pi.rpmold -e 's/^extension=(pgsql|mysql|odbc|ldap|snmp|imap).so\n//' /etc/php.ini
 exit 0
 
@@ -497,6 +533,10 @@
 %files oci8 -f files.oci8
 %endif
 
+%if %{xslt}
+%files xslt -f files.xslt
+%endif
+
 %files imap -f files.imap
 
 %files ldap -f files.ldap
--- /dev/null	2004-09-09 04:05:24.000000000 -0400
+++ SOURCES/php-4.3.2-xslt.patch	2005-05-27 20:19:24.000000000 -0400
@@ -0,0 +1,10 @@
+--- php-4.3.2/ext/xslt/tests/xslt_set_object.phpt.orig	2005-05-27 20:06:00.000000000 -0400
++++ php-4.3.2/ext/xslt/tests/xslt_set_object.phpt	2005-05-27 20:10:32.000000000 -0400
+@@ -6,6 +6,7 @@
+ if(!function_exists('xslt_set_object')) {
+ 	die("skip function xslt_set_object() not available");
+ }
++die("skip function xslt_set_object() is anomalous");
+ ?>
+ --INI--
+ magic_quotes_runtime=0
