Hi all
I'm fairly new to XSL and have a problem matching the initial tags in my XSL
file with the corresponding tags in the matching XML file.
If I remove the initial XML tags, the XSL works, but not otherwise.
What am I missing in the XSL to make it work for the corresponding XML file
below?
XML initial tags
< ?xml version="1.0" encoding="UTF-8" standalone="no"?>
<Report xmlns="http://www .CpmXmlReport.co.il" xmlns:xsi="http://www
.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.CpmXmlReport.co.il XmlReport.xsd">
<Site>
<Unit ID="1" Type="LAN">
...
XSL initial tags
<?xml version="1.0"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www
.w3.org/1999/XSL/Transform" xmlns:xsi="http://www
.w3.org/2001/XMLSchema-instance">
<xsl:output method="html"/>
<xsl:template match="Unit">
...
However, if I change the XML to the following, it the XSL then works OK.
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<Site>
<Unit ID="1" Type="LAN">
...
Thanks for any help.
Regards
Jeff
_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today it's FREE!
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/