Jump to content

tnapolitano

Members
  • Posts

    3
  • Joined

  • Last visited

tnapolitano's Achievements

Newbie

Newbie (1/7)

0

Reputation

  1. Thanks for the reply, boen_robot.Yes, the xml is generated by an application, so re-grouping is not an option. Thanks, again, in advance for any suggestions on how to get my xslt to work.
  2. XSLT noob here, and I would appreciate any help, hints or suggestions.I have a XML structured like this:<doc> <list> <host>hostname1</host> <ip>192.168.1.100</ip> <os>windows xp</os> <host>hostname2</host> <ip>192.168.1.101</ip> <os>mac os x</os> </list></doc>I have a XSL structured like this:<xsl:template match="/" > <html> <body> <h2>System Summary</h2> <table border="1"> <tr> <th align="left">Host</th> <th align="left">IP Address</th> <th align="left">Operating System</th> </tr> <xsl:for-each select="/Doc" > <tr> <td><xsl:value-of select="list/hostname" /></td> <td><xsl:value-of select="list/ip" /></td> <td><xsl:value-of select="list/os" /></td> </tr> </xsl:for-each> </table> </body> </html></xsl:template>My output stops at the first value per element (i.e., "hostname1, 192.168.1.100, Windows XP"). What do I do to make the XSLT continue through all elements of the XML? Thanks in advance.
×
×
  • Create New...