Subject: XHTML to HTML using Xalan problem From: Angeshwar Deepak <angeshwar@xxxxxxxxx> Date: Fri, 11 Jun 2004 05:56:17 -0700 (PDT) |
Hi, I have th following XHTML file (out.xhtml) <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta name="generator" content="HTML Tidy, see www.w3.org" /> <title></title> </head> <body> <center> <h1>Findbugs Summary Report</h1> </center> ......... ......... </body> </html> I have the following XSL file (mod0.xsl) <?xml version="1.0" encoding="iso-8859-1"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:x="http://www.w3.org/1999/xhtml"> <xsl:output method="html"/> <xsl:template match="@*|*|text()"> <xsl:copy> <xsl:apply-templates select="@*|*|text()"/> </xsl:copy> </xsl:template> <xsl:template match="x:head/x:title"> <xsl:copy> <xsl:apply-templates select="@*"/> FindBugs <xsl:apply-templates select="*|text()"/> </xsl:copy> </xsl:template> </xsl:stylesheet> When I run with the following command D:\deepak>java org.apache.xalan.xslt.Process -IN D:\deepak\out.xhtml -XSL D:\deepak\mod1.xsl -OUT D:\deepak\out1.html I get the error file:/D:/deepak/out.xhtml; Line #2; Column #-1; XSLT Error (javax.xml.transform.TransformerExcept ion): External entity not found: "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd". What could be the problem? This works fine with msxsl.exe. I checked the classpath for the required jar files of xalan. Where could the problem be? Any one please suggest some solution. bye with regards, Deepak. __________________________________ Do you Yahoo!? Friends. Fun. Try the all-new Yahoo! Messenger. http://messenger.yahoo.com/
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] xsl:variable and key, Mullee, John | Thread | RE: [xsl] XHTML to HTML using Xalan, Michael Kay |
RE: [xsl] xsl:variable and key, Mullee, John | Date | RE: [xsl] XHTML to HTML using Xalan, Michael Kay |
Month |