|
Subject: XSL template match question From: Vikram <s_vikki_2000@xxxxxxxxx> Date: Fri, 26 May 2000 15:15:45 -0700 (PDT) |
Hi,
I am a newbie to XSL.
I have a XML document in which I specify a XSL
stylesheet. When I open the XML document in IE5.0 all
I see is a blank screen. Its driving me crazy.
In the XSL file when I say...
<xsl:template match="BookCatalogue"> it dosent seem to
work.
"BookCatalogue" is the root element of the XML
document.
I have pasted the XML and XSL file below. Pls take a
look at it.
Thanks in advance.
regards,
Vikram
XML Document
-----------------------
<?xml version="1.0"?>
<!DOCTYPE BookCatalogue SYSTEM "BookCatalogue.dtd">
<?xml:stylesheet href="BookCatalogue2.xsl"
type="text/xsl"?>
<BookCatalogue>
<Book>
<Title>Siddhartha</Title>
<Author>Hermann Hesse</Author>
<Date>1951</Date>
<ISBN>0-553-20884-5</ISBN>
<Publisher>Bantam Books</Publisher>
</Book>
</BookCatalogue>
XSL File
--------------------------------------
<?xml version="1.0"?>
<xsl:stylesheet
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<xsl:template match="BookCatalogue">
<HTML>
<HEAD>
<TITLE>Book Catalogue</TITLE>
</HEAD>
<BODY>
<xsl:apply-templates/>
</BODY>
</HTML>
</xsl:template>
<xsl:template match="Book">
<p/>Here is a book:<br/>
<xsl:apply-templates/>
</xsl:template>
</xsl:stylesheet>
__________________________________________________
Do You Yahoo!?
Kick off your party with Yahoo! Invites.
http://invites.yahoo.com/
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| Re: can we use html objects in xsl, Edwin Glaser | Thread | Re: XSL template match question, Mike Brown |
| RE: Re: getting element name into h, paulo . gaspar | Date | Re: How to preserve a node's value , Mike Brown |
| Month |