Ask a Question related to PHP Development, Design and Development.
-
tsirman #1
php and xsl problem
hello,
well i have a problem with something,
i have an xml file and i have created an xsl file to parse my data for
my php page.
all are working OK but i don't know how can i split my data into 2
columns and not in one cell.
i don't know how can i make it but i was thinking 2 ways
1)split the data in the middle
or
2)split tha data per 2. namely in the first cell we can have tha
single one and in the second the even one.
----------------------------------------
The post originated from PHP Freaks:
----------------------------------------
[url]http://www.phpfreaks.com[/url]
[url]http://www.phpfreaks.com/forums[/url]
tsirman Guest
-
contribute problem - access denied file may not existpermission problem
Recieving the following error message - "access denied file may not exist , or there could be a permission problem" this happened this morning ,... -
Problem playing Quicktime thru .DCR embedded in HTML - pathreferencing problem?
Greetings earthlings and Director heads. Here's the problem: created an HTML file containing shockwave (dcr) movie that calls quicktime movies in... -
Uploading problem = weird warning (was: access denied problem.....)
Hi, I had a problem where my upload form was not working on our production server but was working on two other servers, after checking the... -
#21611 [Opn]: Problem with version_compare() (Was: Problem with pear cli and release numbers)
ID: 21611 Updated by: et@php.net -Summary: Problem with pear cli and release numbers Reported By: jan at horde... -
Problem with Apache Web Server config file and PHP (please give advice on what problem may be me)
HI: Can anyone refer me to someone that can help with the problem below. I installed Apache Web Server on my laptop which has Windows XP. I... -
Janwillem Borleffs #2
Re: php and xsl problem
tsirman wrote:
You can do this with the xpath mod operator, eg:> hello,
>
> well i have a problem with something,
> i have an xml file and i have created an xsl file to parse my data for
> my php page.
> all are working OK but i don't know how can i split my data into 2
> columns and not in one cell.
>
<xsl:choose>
<xsl:when test="position() mod 2 = 0">
<!-- Even row -->
</xsl:when>
<xsl:otherwise>
<!-- Odd row -->
</xsl:otherwise>
</xsl:choose>
Use this with apply-templates or for-each.
JW
Janwillem Borleffs Guest



Reply With Quote

