"template match" woes

webmasterbeta

New Member
Hi All,Can anyone please explain why the "template match" code below never works.No mater what combination of slashes I place in the query the table nevershows.Yet if I use the same string like so<xsl:for-eachselect="APPLICATION/OBJECT[@ID='Appearances']/PROPERTIES/PROPERTY">and "template match" = "/" then it works ok. Also works ok from DOM usingSelectNodes() , Could anyone please explain where I am going wrong.TIANeal'-----------------------------------------------------------------------------------<xsl:stylesheet xmlns:xsl="http://www.w3.org/TR/WD-xsl"><xsl:template match="APPLICATION/OBJECT[@ID='Appearances']"><html><p><xsl:value-of select="NAME"/></p><xsl:for-each select="PROPERTIES/PROPERTY"><tr><td class="TableCell"><xsl:value-of select="NAME"/></td><td class="TableCell"><xsl:value-ofselect="DESCRIPTION"/></td></tr></xsl:for-each></html>'-----------------------------------------------------------------------------------</xsl:template></xsl:stylesheet><xsl:template match="/"><xsl:for-eachselect="APPLICATION/OBJECT[@ID='Appearances']/PROPERTIES/PROPERTY">-------XML FILE------------------------------------<?xml version="1.0" encoding="UTF-8" standalone="yes"?><?xml-stylesheet type="text/xsl" href=http://forums.devx.com/archive/index.php/"obj.xsl"?><APPLICATION><OBJECT ID="Appearance"><NAME>Appearance</NAME><URL>Appearance.html</URL><PROPERTIES><PROPERTY ID="Appearance.BackColor" TYPE="P"><NAME>BackColor</NAME><URL>Appearance~BackColor.html</URL><DESCRIPTION>Returns/sets the BackColor for anelement.</DESCRIPTION><SHOW_MENUS>1,2,3</SHOW_MENUS></PROPERTY><PROPERTY .....................
 
Top