XML file--------------------<?xml version="1.0" encoding="ISO-8859-1"?><!-- Edited with XML Spy v4.2 --><catalog xmlns="http://tempuri.org/"> <cd> <title>Empire Burlesque</title> <artist>Bob Dylan</artist> <country>USA</country> <company>Columbia</company> <price>10.90</price> <year>1985</year> </cd> <cd> <title>Hide your heart</title> <artist>Bonnie Tyler</artist> <country>UK</country> <company>CBS Records</company> <price>9.90</price> <year>1988</year> </cd></catalog>-------------------------------XSLT file--------------------<?xml version="1.0" encoding="UTF-8"?><xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:template match="/" > <html> <body> <table border="1" bgcolor="cyan"> <tr> <th>Title</th> <th>Artist</th> <xsl:apply-templates/> </tr> </table> </body> </html> </xsl:template> <xsl:template match="cd"> <tr> <td><xsl:value-of select="title"/></td> <td><xsl:value-of select="artist"/></td> </tr> </xsl:template></xsl:stylesheet>
вся проблема в xmlns="http://tempuri.org/" , если атрибут снять то все работает.может что то надо дописать в хслт? (целый день пропал без толку.. :( )