XSLT not displaying anything

webmasterbeta

New Member
Hi 2 all~!I've a problem loading the XML data using a XSL.Nothing is being displayed. Anyone can help?1. XML File (economic.xml)<?xml version="1.0" encoding="ISO8859-1" ?><?xml-stylesheet type="text/xsl" href=http://forums.devx.com/archive/index.php/"comment.xsl"?><!DOCTYPE comments [<!ELEMENT comments (author,content,date)><!ELEMENT author (#PCDATA)><!ELEMENT content (#PCDATA)><!ELEMENT date (#PCDATA)>]><comments><author>Singapore Economic/Market Forecast</author><content>Singapore : May's industrial output plunged ; technical recessionahead! (as at 27 June 2001)Singapore is heading for a technical recession, on the basis of seasonallyadjusted quarter-on-quarter growth. The 10.9% y-o-y plunge in the May 01industrial output has substantially increased the odds of that happening.</content><date>Thu, 05 Jul 2001, 03:02PM</date></comments>2. XSL File (comment.xsl)<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"><xsl:template match="comments"><html><head/><body><xsl:apply-templates select="content"/></body></html></xsl:template><xsl:template match="content"><h1><xsl:apply-templates/></h1></xsl:template></xsl:stylesheet>
 
Back
Top