[PHP] PHP: XML + XSL

2002-12-18 Thread Hristina
hello!
I have the following problem:
table border=1
 xsl:for-each select=manifactures/man
  xsl:if test=(position() mod 6) = 1
  TR
TD
 xsl:value-of select=.//TD
TD
xsl:value-of
select=following-sibling::man[position()=1]/
   /TD
 TDxsl:value-of
select=following-sibling::man[position()=2]//TD
  TDxsl:value-of select=following-sibling::man[position()=3]//TD
  TDxsl:value-of select=following-sibling::man[position()=4]//TD
  TDxsl:value-of select=following-sibling::man[position()=5]//TD
  /TR
/xsl:if

  /xsl:for-each
 /table

I want to display text from nodes in xsm file, but after every text to put
picture with link.
The rows above dispay the text correctly in a table with 6 columns. But how
to put the pucture
and to display it only in cells where there is text?

Thanks a lot






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




[PHP] PHP: XML + XSL

2002-12-17 Thread Hristina
Hello falks!
I could not enter javascript into my xsl file.
Does anyone know how to do it?

Thanks a lot



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




[PHP] PHP: XML/XSL

2002-08-27 Thread Alia Mikati

Hi everybody,
I'm using Sablotron to transform XML with XSL and this is the PHP file:

?PHP

$strXhtml = ?xml version=\1.0\?\n;
$strXhtml = $strXhtml . htmlbody\n;
$strXhtml = $strXhtml . pbfont color=\#800080
\Balance:/font/b/p\n;
$strXhtml = $strXhtml . p align=\left\input type=\text\ 
name=\balanceText\ size=\20\ value=\200$\//p\n;
$strXhtml = $strXhtml ./body/html;
//echo(trim($strXhtml));

include(XSLTransformer.php); 
$xml=$strXhtml; 
$xsl=testing.xsl; 

$transform = new XSLTransformer(); 
if($transform-setXsl($xsl)) { 
   if($transform-setXmlString($xml)) { 
  $transform-transform(); 
  if ($transform-getError() == 0) { 
 echo $transform-getOutput(); 
  } else { 
 echo pError transforming ,$xml,./p\n; 
  } 
   } else { 
  echo p,$xml,: ,$transform-getError(),/p\n; 
   } 

$transform-destroy(); 
} ? 


I'm getting the following warning although I'm sure that if I applied XSL 
to the XML file without php, it's working. Plz can u help me and tell me 
what could be the problem?
Warning: xslt_process(): supplied argument is not a valid XSLT Processor 
resource in /home/alia/public_html/XHTML/XSLTransformer.php on line 69

Thx a lot



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