On Saturday 04 September 2004 00:29, Stanislav Obolevich wrote:
> On Friday 03 September 2004 09:08, Carlo Contavalli wrote:
> > On Thu, Sep 02, 2004 at 07:32:20PM +0200, scream@xxxxxxxx wrote:
> > > Hi, this is my first post to mailing lists.
> > > I'm coding my homepage using mod-xslt, and i run into one problem:
> > > When i set doctype-public="-//W3C//DTD XHTML 1.0 Strict//EN/"
> > > doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd" in
> > > xsl:output, mod-xslt stops parsing stylesheet at this point.
> > >
> > > here are links, so you can look yourselves:
> > > stylesheet: _http://scream.gotdns.com/hp/inc/site.xsl
> > > source xml: _http://scream.gotdns.com/hp/index.xml
> >
> > Uhm, I just took a look at it:
> > 1 - I cannot read the sources for the .xml document,
> > since mod-xslt returns me the parsed version
> > 2 - Parsing seems to occur correctly, beshide the
> > output being empty. Take a look at:
> > - your error.log, maybe some XPath expression
> > is not evaluated correctly
> > - your .xsl, verify that it matches something.
> > Take into account xmlns or stuff like that
> > (if you specify a namespace in the .xml, you
> > then need to specify the same namespace in
> > the .xsl files)
> > 3 - The mime type is still xml. You probably need to
> > insert in your xsl file something like method="html"
> > in xsl:output or, since you want xhtml as output,
> > use something like media-type="text/html" always
> > in the xsl:output element. Otherwise, browsers
> > like ie or Mozilla will try to parse the document
> > one more time.
> >
> > As a general suggestion, try to use the command line tool
> > xsltparse or modxslt-parse. They will output problems on
> > stderr, and will not incur into apache problems. If you
> > still get no output, there probably is a problem in your .xsl
> > file matching the .xml file. Try to post the whole .xml
> > file and .xsl file into the mailing list...
> >
> > Cheers :),
> > Carlo
>
> I have tried everything you suggested. Nothing helped.
> This is a link with all the sources _http://scream.gotdns.com/hp_source/
> Maybe you can figure something out.
>
> Regards, Stas