Re: Saxon + xalan - error

Subject: Re: Saxon + xalan - error
From: Angeshwar Deepak <angeshwar@xxxxxxxxx>
Date: Wed, 16 Jun 2004 00:28:33 -0700 (PDT)
Hi,

Is there any way to make the changes in the xhtml (in
the dtd path) via an xsl file. i.e. the xhtml file
should not be opened and edited by the user, it should
be done automatically by a xsl file. something like a
copy paste everything but change the

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
 Transitional//EN"

part alone with a reference to the dtd in the local
harddisk....

what id the <!DOCTYPE......etc etc
with respect to xsl. Is it a node or??????or to acsess
the xhtml and make changes via xsl.

bye,
with regards,
Deepak.



--- Angeshwar Deepak <angeshwar@xxxxxxxxx> wrote:
> Hi,
> 
> Thanks for the mail.
> However I should not access the XHTML. i.e. I cannot
> open the file and edit something. There is 1 xml
> file
> in my project (an xml report from findbugs tool).
> There are 3 xsl files which generate 3 html files
> seperately and of the 3 html files i am converting 1
> html to xhtml for furthering accessing with another
> xsl file, i extract something from this xhtml and
> creatte a final report which has user defined links
> to
> other 2 html files..
> 
> all these take place in an ant buildd file. so i
> cannot open the xhtml and make changes. i.e.
> everything takes place in 1 sigle step. so is there
> any way to access the xhtml via the xsl without
> opening the xhtml and making the dtd changes......
> 
> any help regarding this will be great.
> 
> bye,
> with regards,
> Deepak.
> 
> 
> 
> Date: Tue, 15 Jun 2004 15:28:03 -0400
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> From: Paul Tremblay <phthenry@xxxxxxxxxxxxx>
> Subject: Re: [xsl] Re: Saxon + xalan - error
> Message-ID:
> <20040615192803.GE10627@xxxxxxxxxxxxxxxxxxxxx>
> 
> At the top of your document, you will see this:
> 
> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
> Transitional//EN"
>    
>
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";>
> 
> Go to the webpage 
> 
>    
>
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";
> 
> Save this webpage (which is actually just a text
> file)
> to your HD. I
> saved it to my directory
> "/home/pual/xhtml1-transitional.dtd". If  you
> have a Windows system, this directory will look
> differntly, with "/"
> instead of "/" as directory seperators.
> 
> Now open up the document created by tidy. Change the
> <!DOCTYPE to
> 
> <!DOCTYPE html SYSTEM
> "/home/paul/xhtml1-transitions.dtd">
> 
> Except, instead of using
> "/home/paul/xhtml1-transitions.dtd", use the
> directory where you saved the dtd.
> 
> Now when run your transformation, the xml parser
> will
> look to your 
> local
> dtd.
> 
> Paul
> 
> On Tue, Jun 15, 2004 at 10:34:44AM -0700, Angeshwar
> Deepak wrote:
> > Date: Tue, 15 Jun 2004 10:34:44 -0700 (PDT)
> > From: Angeshwar Deepak <angeshwar@xxxxxxxxx>
> > To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> > Subject: [xsl] Re: Saxon + xalan - error
> > 
> > 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.
> > 
> 
> 
> 
> 		
> __________________________________
> Do you Yahoo!?
> Yahoo! Mail is new and improved - Check it out!
> http://promotions.yahoo.com/new_mail
> 



	
		
__________________________________
Do you Yahoo!?
New and Improved Yahoo! Mail - 100MB free storage!
http://promotions.yahoo.com/new_mail 

Current Thread