[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

XSL Formatting Problem

Subject: XSL Formatting Problem
From: "Jack Cane" <jwcane@xxxxxxxxxxx>
Date: Mon, 25 Feb 2002 21:08:33 -0500
xsl formatting an element
I am a rank newcomer to xml. Herewith extracts from three files, xml, dtd
and xls. Problem is that, when browsing the xml with IE, nothing appears on
the page. There must be some fundamental error(s?) in my content.

************************
The dtd file follows
************************

<!ELEMENT dissertation (FrontMatter, Introduction, Methodology,
Expectations, Bibliography, Appendixes?, RefList )>

	<!ELEMENT FrontMatter (TitlePage, AuthorCert, Contents, Figures, Tables )>

		<!ELEMENT TitlePage (DissTitle, author, description, department, school,
year )>
			<!ELEMENT DissTitle (#PCDATA)>
			<!ELEMENT author (#PCDATA)>
			<!ELEMENT description (#PCDATA)>
			<!ELEMENT department (#PCDATA)>
			<!ELEMENT school (#PCDATA)>
			<!ELEMENT year (#PCDATA)>

************************
The xml file follows
************************

<?xml version = "1.0"?>
<?xml:stylesheet type = "text/xsl" href = "dissertation.xsl"?>
<!-- Sample dissertation document
 -->

<!DOCTYPE dissertation SYSTEM "dissertation.dtd">

<dissertation>
  <FrontMatter>
    <TitlePage>
  	<DissTitle>
        Assessment of Web Application Technology
	</DissTitle>
	<Author>
	  John W. Cane
	</Author>
	<description>
	  A dissertation submitted in partial fulfillment of the requirements for
the degree of Doctor of Philosophy
	</description>
    </TitlePage>
  </FrontMatter>
</dissertation>

************************
The xsl file follows
************************

<?xml version = "1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/Transform/1.0"
                xmlns:html="http://www/w3.org/TR/REC-hrml40"
                result-ns="html">
	<!-- Sample xml style sheet
			 Nova Southeastern University
	 -->

	<xsl:template match="TitlePage">
		<html:title>
			<xsl:value-of select="DissTitle"/>
		</html:title>
		<html:body bgcolor="#efefef" font="Palatino Linotype" size="2">
			<xsl:value-of select="DissTitle"/>
		</html:body>
	</xsl:template>
</xsl:stylesheet>

************************

Any ideas appreciated.

Cheers,
jwc


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.