nehap8 0 Newbie Poster

I am new to xslt so please excuse my naive question.
I have an xml file with DTD, when I try to convert this xml file to html using xslt, I get errors. When i remove the DTD and repeat the process i get no errors. Please advice me on this issue.

XML with DTD:

<!DOCTYPE art public "-//ES//DTD full length article DTD version 4.3.1//EN"[]><ART VERSION="4.3.1" JID="AOS" AID="392" DOCSUBTY="FLA" PII="S0361368202000302" DOI="10.1016/S0361-3682(02)00030-2"><COPYRIGHT TYPE="full-transfer" YR="2003">Elsevier Ltd</COPYRIGHT><FM><ATL>The colour of accountancy: examining the salience of race in a professionalisation project</ATL></FM></ART>

XML without DTD:

<ART VERSION="4.3.1" JID="AOS" AID="392" DOCSUBTY="FLA" PII="S0361368202000302" DOI="10.1016/S0361-3682(02)00030-2"><COPYRIGHT TYPE="full-transfer" YR="2003">Elsevier Ltd</COPYRIGHT><FM><ATL>The colour of accountancy: examining the salience of race in a professionalisation project</ATL></FM></ART>

XSL:

<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns="http://www.w3.org/TR/REC-html40" >
<xsl:output method="html" encoding="UTF8" />
<xsl:strip-space elements="*"/>

<xsl:template match="/">
<html>
<head><title>Hello</title></head>
<body><b>Title:</b>
<xsl:value-of select="/ART/FM/ATL"/>
</body></html>
</xsl:template>
</xsl:stylesheet>

Thanks,
Neha

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.