xslt_process problem

From: Date: Fri, 14 Feb 2003 23:40:31 +0000
Subject: xslt_process problem
Groups: php.general 
Request: Send a blank email to php-general+get-135614@lists.php.net to get a copy of this message
I am trying to figure out the whole XML/XSL thing and am experimenting with the Gentoo docs which have a simple XSL sheet. I downloaded the XML, XSL and DTD, and ran the files through the Sablotron module in php using: $xp = xslt_create(); xslt_set_base($xp, 'file://c:/shared/mywebs/beta/test/'); $result = xslt_process($xp, 'rsync.xml', 'guide.xsl'); echo $result; xslt_free($xp); Everything worked like a champ except for one strange little problem: the XSL stylsheet defines anchors and links in a drop-down menu for each "chapter", sequentially... (as you can see here: http://www.gentoo.org/doc/en/rsync.xml) but in the PHP transformation with the local files, all of the chapter numbers and the numbers in the drop down are "1"! The guide.xsl I am using is online at: http://www.gentoo.org/xsl/guide.xsl and I am using a current rsync.xml from the CVS repository, so it has to be something in the local transformation with PHP.

« previous php.general (#135614) next »