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.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to