xsl-list
[Top] [All Lists]

RE: XHTML to HTML using Xalan problem

2004-06-11 06:06:09
The problem could be that your machine does not have an internet connection,
or that your Java configuration does not allow you to use it.

It's not an XSLT problem.

Michael Kay 

-----Original Message-----
From: Angeshwar Deepak [mailto:angeshwar(_at_)yahoo(_dot_)com] 
Sent: 11 June 2004 12:56
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: [xsl] XHTML to HTML using Xalan problem

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/ 

--+------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: 
<mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--+--






<Prev in Thread] Current Thread [Next in Thread>