Re: XSLT/XPATH problem, possible bug

Martin Honnen <[email protected]>
Newsgroups gmane.comp.mozilla.devel.layout.xslt
Organization Liberty Development
Message-ID <[email protected]>
Michael Hansen wrote:

> The website works fine in Opera 9 beta and IE.
> 
> Here's the address for the xml output (mainpage):
> http://studenterkonto.humaniora.sdu.dk/labjo05/webstandarder/xmlserializer.php?action=upcomingconcerts

The seems to display fine for me here with Firefox 1.5.0.4 release build 
on Windows XP. Do you have a URL where the XSLT transformation does not 
display the result you want?

> you can see the related xsl stylesheet here:
> http://studenterkonto.humaniora.sdu.dk/labjo05/webstandarder/xslserializer.php?action=upcomingconcerts

Some comments on the stylesheet:

Why do you use
   <xsl:stylesheet version="2.0"
if you want to run the stylesheet with client-side XSLT processors like 
the one used by Firefox or IE or Opera 9? All these are XSLT 1.0 
processors and with the version="2.0" you put them into 
forwards-compatible processing mode:
   <http://www.w3.org/TR/xslt#forwards>
Is that really what you want? Why can't you use
   <xsl:stylesheet version="1.0"
?

The stylesheet is served as text/xsl, consider using application/xml or 
text/xml which are official XML MIME types.

-- 

	Martin Honnen
	http://JavaScript.FAQTs.com/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.