[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] XSL template match question
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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|