Subject: Re: Saxon + xalan - error From: Angeshwar Deepak <angeshwar@xxxxxxxxx> Date: Tue, 15 Jun 2004 10:34:44 -0700 (PDT) |
Dear Mr Michael Kay, Thank you for the reply. However can you kindly clarify me regarding -'make a local copy of the XHTML DTD and use that instead' How to make such a local copy. Do you mean to say that I create a DTD and reference it in my XSL? My XHTML is generated by Tidy tool. So I cannot manipulate if further I think. Should I call my new DTD via my XSL? If so how do i reference it. (imagine the dtd is in c:\) I have my xhtml and xsl as follows. Kindly tell me where I have make the changes in the xsl file and the new DTD file that I have to create. a.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> <title> XHTML sample </title> </head> <body> <p name="who">Anand</p> <p name="job">Web Developer</p> <p name="area">California</p> </body> </html> a.xsl <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xhtml="http://www.w3.org/1999/xhtml"> <xsl:output method="text"/> <xsl:template match="xhtml:title"> <xsl:text>title: </xsl:text> <xsl:value-of select="."/> <xsl:text> </xsl:text> </xsl:template> <xsl:template match="p"> <xsl:text>paragraph "</xsl:text> <xsl:value-of select="@name"/> <xsl:text>": </xsl:text> <xsl:value-of select="."/> <xsl:text> </xsl:text> </xsl:template> </xsl:stylesheet> i also tried the full Saxon product, its quite surprisingthat sometime it works fine and sometimes i get the error C:\june7\june7>java com.icl.saxon.StyleSheet a.xhtml a.xsl > out1.html Error java.io.UnsupportedEncodingException: =UTF-8: =UTF-8 Transformation failed or D:\june13>java com.icl.saxon.StyleSheet a.xhtml a.xsl > output.html Transform failed: Connection timed out: connect I googled arnd and came across these messages, http://weblogs.asp.net/dmarsh/archive/2002/06/24/541.aspx http://lists.w3.org/Archives/Public/www-html/2001Sep/0058.html i am not sure if I am facing such a similar problem. bye, with regards, Deepak. From: "Michael Kay" <mhk@xxxxxxxxx> Subject: RE: [xsl] Saxon + xalan - error I can't reproduce this failure, with either Saxon 6.5.3 or Instant Saxon 6.5.3. The message Transform failed: Connection timed out: connect simply means that the W3 site is being unresponsive. Try again when it's less busy, or make a local copy of the XHTML DTD and use that instead. I suggest you switch to the full Saxon product (which uses the Sun JVM) rather than continuing with Instant Saxon which uses the (now very ancient) Microsoft Java VM. Michael Kay ===== Deepak Angeswar, Home: Pfaffenwaldring 48 C / 202, 70569 Stuttgart, Germany. Ph: Home: 049 0711 1225292 Mobile: 049 0176 24039227 Office: Work Student- DaimlerChrysler AG ITI/TP, Building R+V Gebäude, Eichwiesenring 14, 70567 Stuttgart, Germany. Email Id: deepak.angeswar@xxxxxxxxxxxxxxxxxxx __________________________________ Do you Yahoo!? New and Improved Yahoo! Mail - Send 10MB messages! http://promotions.yahoo.com/new_mail
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] Saxon + xalan - error, Michael Kay | Thread | Re: [xsl] Re: Saxon + xalan - error, Paul Tremblay |
RE: [xsl] declare the charset by an, Josh Canfield | Date | RE: [xsl] including string of value, Josh Canfield |
Month |