[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: xsl template for simple data-base to transform int
How would you like it to display?
<?xml version="1.0" encoding="UTF-8" ?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:output method="html" indent="yes" /> <xsl:template match="/"> <html> <body> <table> <tr> <th>Name</th> <th>Address</th> <th>Phone Number</th> <th>Part Number</th> <th>Quantity</th> <th>Price</th> <th>Total</th> <tr> <xsl:apply-templates /> </table> </body> </html> </xsl:template> <xsl:template match="Purchase-Order"> <tr> <td><xsl:value-of select="name" /></td> <td><xsl:value-of select="address" /></td> <td><xsl:value-of select="phone-number" /></td> <td><xsl:value-of select="part-number" /></td> <td><xsl:value-of select="quantity" /></td> <td><xsl:value-of select="price" /></td> <td><xsl:value-of select="total" /></td> </tr> </xsl:template> </xsl:stylesheet> Bovy, Stephen J wrote: I would like to find a simple xml template to convert something like this:
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|