Jump to content

How to arrange pics in two columns with XSL from XML data...


Guest SickMothaFu

Recommended Posts

Guest SickMothaFu

Hi all ! , I have simple XML file containing all pics. With this current XSL the pics are displayed one after another in one column.MY QUESTION is : how to arrange the pictures so they are in two columns? Something like :[pic1] [pic2][pic3] [pic4][pic5] [pic6]Here is the code.XML is for example ...

<PicName>path1/path2/Pic001.jpg</PicName>

The code in the xsl to display it is :

<?xml version="1.0" encoding="iso-8859-1"?><xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"><xsl:template match="/"> <html><head></head><body>     <xsl:apply-templates />   </body></html></xsl:template><xsl:template match="Pics"><span> <img style="padding:0px 0px 0px 0px; margin:0px 10px 10px 0px; border:1px solid #000000; height:300px; width:400px">   <xsl:attribute name="src"><xsl:value-of select="PicName" />  </xsl:attribute>  </img></span></xsl:template></xsl:stylesheet>

Thanks! :)

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...