Guest SickMothaFu Posted August 10, 2006 Share Posted August 10, 2006 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 More sharing options...
boen_robot Posted August 10, 2006 Share Posted August 10, 2006 Exactly the kind of thing the linear to tabular data code is created. Link to comment Share on other sites More sharing options...
aspnetguy Posted August 10, 2006 Share Posted August 10, 2006 username inappropriate. banned and closed. Link to comment Share on other sites More sharing options...
Recommended Posts