Any ideas why I am not getting any results back in my HTML via XSLT
from my XML doc. It is not returning any errors just no matches when
it should return a value of DATA for SchemeName ??
<xsl:styleshe et xmlns:xsl="http ://www.w3.org/1999/XSL/Transform"
version="1.0">
<xsl:output method="html" />
<xsl:template match="/">
<html>
<head>
<title>Buildi ng Control</title>
</head>
<body>
<h3>Building Control</h3>
<table border="0" width="80%" cellpadding="2" cellspacing=
"1" bgcolor="#99999 9">
<tr bgcolor="#deded e">
<th>Scheme</th>
</tr>
<xsl:for-each select="SchemeN ame">
<tr bgcolor="#fffff f">
<td><xsl:valu e-of select="SchemeN ame" /></td>
</tr>
</xsl:for-each>
</table>
</body>
</html>
</xsl:template>
</xsl:stylesheet>
----------------------------------------
This is my XML Schema
<?xml version="1.0" encoding="UTF-16" ?>
- <BuildingRecord Set xmlns:rs="urn:s chemas-microsoft-com:rowset"
xmlns:z="#Rowse tSchema"
xmlns:apd="http ://www.govtalk.gov .uk/people/AddressAndPerso nalDetails">
<SchemeName>DAT A</SchemeName>
<LocalAuthority Code>DATA</LocalAuthorityC ode>
- <BuildingRecord >
<SchemeUniqueRe cordIdentifier> 2</SchemeUniqueRec ordIdentifier>
<CompetentPerso n>
<PersonRegistra tionNumber>02</PersonRegistrat ionNumber>
<InstallerRegis teredName>Name</InstallerRegist eredName>
</CompetentPerson >
<WorkPerforme d>
<PropertyInform ation>
<PropertyLocati on>
<PropertyAddres s>
<apd:A_5LineAdd ress>
<apd:Line>Ban k</apd:Line>
<apd:Line />
<apd:Line />
<apd:Line></apd:Line>
<apd:PostCode ></apd:PostCode>
</apd:A_5LineAddr ess>
</PropertyAddress >
</PropertyLocatio n>
</PropertyInforma tion>
<DateWorkComple ted>20/01/2005</DateWorkComplet ed>
<DescriptionOfW orkItem>Shower</DescriptionOfWo rkItem>
</WorkPerformed>
</BuildingRecord>
</buildingrecords et>
from my XML doc. It is not returning any errors just no matches when
it should return a value of DATA for SchemeName ??
<xsl:styleshe et xmlns:xsl="http ://www.w3.org/1999/XSL/Transform"
version="1.0">
<xsl:output method="html" />
<xsl:template match="/">
<html>
<head>
<title>Buildi ng Control</title>
</head>
<body>
<h3>Building Control</h3>
<table border="0" width="80%" cellpadding="2" cellspacing=
"1" bgcolor="#99999 9">
<tr bgcolor="#deded e">
<th>Scheme</th>
</tr>
<xsl:for-each select="SchemeN ame">
<tr bgcolor="#fffff f">
<td><xsl:valu e-of select="SchemeN ame" /></td>
</tr>
</xsl:for-each>
</table>
</body>
</html>
</xsl:template>
</xsl:stylesheet>
----------------------------------------
This is my XML Schema
<?xml version="1.0" encoding="UTF-16" ?>
- <BuildingRecord Set xmlns:rs="urn:s chemas-microsoft-com:rowset"
xmlns:z="#Rowse tSchema"
xmlns:apd="http ://www.govtalk.gov .uk/people/AddressAndPerso nalDetails">
<SchemeName>DAT A</SchemeName>
<LocalAuthority Code>DATA</LocalAuthorityC ode>
- <BuildingRecord >
<SchemeUniqueRe cordIdentifier> 2</SchemeUniqueRec ordIdentifier>
<CompetentPerso n>
<PersonRegistra tionNumber>02</PersonRegistrat ionNumber>
<InstallerRegis teredName>Name</InstallerRegist eredName>
</CompetentPerson >
<WorkPerforme d>
<PropertyInform ation>
<PropertyLocati on>
<PropertyAddres s>
<apd:A_5LineAdd ress>
<apd:Line>Ban k</apd:Line>
<apd:Line />
<apd:Line />
<apd:Line></apd:Line>
<apd:PostCode ></apd:PostCode>
</apd:A_5LineAddr ess>
</PropertyAddress >
</PropertyLocatio n>
</PropertyInforma tion>
<DateWorkComple ted>20/01/2005</DateWorkComplet ed>
<DescriptionOfW orkItem>Shower</DescriptionOfWo rkItem>
</WorkPerformed>
</BuildingRecord>
</buildingrecords et>
Comment