PDA

View Full Version : xml layout problem please help!


onead
02-21-2007, 03:48 PM
hi

hello, i hope someone can help me with a problem i'm having.

i am using the folowing code to allow the admin of a site i am developing to select how many results are displayed per page before creating a new page:

<ipp type="droplist" required="true" validate="A:1:200" >
<title>Items per page</title>
<options>
<option name="6">6</option>
<option name="10">10</option>
<option name="16">16</option>
<option name="20">20</option>
<option name="26">26</option>
</options>
<description>Select the number of cars you want to apear on the listing page.</description>
</ipp>


however this displays the images one after the other down the page like this.

http://www.theoneagencydevelopment.co.uk/Alexanders_Motor_Company/list.php

i want the results to be displayed with 2 results on 1 row then move onto the next line

can this be done using xslt and if so does anyone have any ideas how i would go about this

many thanks in advance
jason

david_kw
02-21-2007, 05:10 PM
It isn't obvious where XSLT comes in to the equation here. The source for the example site is in HTML not XML. Also it appears that each car is a table and you've placed a <br/> between them. Can't you just change your PHP to write the <br/> every other time through the car results loop?

david_kw