cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Conal Tuohy" <Conal.Tu...@vuw.ac.nz>
Subject RE: HTML serializer namespace problem
Date Thu, 22 May 2003 06:21:05 GMT
see my previous post

> -----Original Message-----
> From: rg1915@dslextreme.com [mailto:rg1915@dslextreme.com]
> Sent: Thursday, 22 May 2003 6:13 p.m.
> To: cocoon-users@xml.apache.org
> Subject: Re: HTML serializer namespace problem
> 
> 
> I'm also seeing the same behavior in 2.1. I didn't see this 
> in 2.0.4.  To
> get the html to match I have to use a namespace where I 
> didn't in 2.0. 
> The HTMLGenerator generates html using the XHTML namespace. I 
> strip off
> everything except what is in between the body tags. The first element
> after the body tag is a form tag and it comes out as
> <form xmlns="http://www.w3.org/1999/xhtml" ...>
> 
> If you could generate a sample stylesheet that leaves what is 
> between the
> body tags and doesn't exhibit this behavior I'd be most grateful.
> 
> Ralph
> 
> 
> 
> >      My guess is what you are seeing is correct behavior of your
> > stylesheets.  One of the most difficult parts of XSLT is namespace
> > stuff.   If you post default.xsl I _might_ be able to tell 
> you what the
> > problem is.
> >
> > Alexander Schatten wrote:
> >
> >> I use htmlreader to read html documents, convert them to 
> xhtml, then
> >> the documents are processed using xslt transformer, then html
> >> serializer like this:
> >>
> >> <map:match pattern="**.html">
> >>  <map:generate src="html/{1}.html" type="html"/>
> >>   <map:transform src="style/default.xsl" type="xslt" />
> >>   <map:serialize type="html" />
> >> </map:match>
> >>
> >> so this should be clear and straightforward. unfortunately the
> >> generated documents are full of statements like this
> >>
> >> <p xmlns="http://www.w3.org/1999/xhtml" ...
> >>
> >>
> >>
> >> This is obviously not correct as the html serializer should not
> >> generate xhtml namespaces, and if available, it should remove it.
> >> (Additionally in the stylesheet the <xsl:out> defines html as
> >> method...)
> >>
> >> Can there be done something against this?
> >>
> >>
> >> thank you again!!
> >>
> >>
> >> Alex
> >>
> >>
> >>
> >>
> >> 
> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
> >> For additional commands, e-mail: cocoon-users-help@xml.apache.org
> >>
> >>
> >
> >
> >
> > 
> --------------------------------------------------------------
> ------- To
> > unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
> > For additional commands, e-mail: cocoon-users-help@xml.apache.org
> 
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
> For additional commands, e-mail: cocoon-users-help@xml.apache.org
> 
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-users-help@xml.apache.org


Mime
View raw message