I've got an xml file
Code:
<?xml version="1.0" standalone="yes"?>
<?xml-stylesheet type="text/xsl" href="corporation.xsl"?>
<!DOCTYPE Corporation [
<!ELEMENT Corporation (name, employee, location)>
<!ELEMENT name (#PCDATA)>
<!ELEMENT employee EMPTY>
<!ATTLIST employee name CDATA #REQUIRED>
<!ATTLIST employee id_number CDATA #REQUIRED>
<!ATTLIST employee email CDATA #REQUIRED>
<!ATTLIST employee phonenumber CDATA #IMPLIED>
<!ELEMENT location EMPTY>
<!ATTLIST location postal_code CDATA #REQUIRED>
<!ATTLIST location city CDATA #REQUIRED>
<!ATTLIST location province CDATA #REQUIRED>
<!ATTLIST location address CDATA #REQUIRED>
<!ATTLIST location size CDATA #IMPLIED>
]>
<Corporation>
<name>Scott's Company</name>
<employee name="Scott" id_number="34C23a" email="[email protected]" phonenumber="2503358293" />
<location postal_code="A1B 2C3" city="Victoria" province="B.C." address="2530 Broadway" size="20" />
</Corporation>
I've got an xsl file
Code:
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="/">
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>Sample Corporation #1</title>
</head>
<body>
Hello this is a test<br />
Have a great day!
</body>
</html>
</xsl:template>
</xsl:stylesheet>
and Firefox gives me "XML Parsing Error: not well-formed
Location: file:///E:/XSLT-XML-Shema/corporation.xsl
Line Number 6, Column 4: <!DOCTYPE html>
----------^"