Re: TopXML Tutorial on XSLT and XPath
"Joel" <[email protected]> 4 Jun 2006 23:28:17 -0700
| Newsgroups | gmane.comp.mozilla.devel.xml |
|---|---|
| Organization | http://groups.google.com |
| Message-ID | <[email protected]> |
Hi Christopher, I maintain the TopXML website, thanks for notifying us about the error in the article. I have corrected the main article, xml file and the xsl stylesheet. I have tested it both in Firefox and Internet Explorer and all is working fine now. My apologies for the inconvenienced caused. Thanks, -Joel TopXML Support [email protected] wrote: > It actually got a little worse, or I discovered another bug, when I > changed the xml:stylesheet to xml-stylesheet. > > This is the namespace declaration in the samples given at TopXML > xmlns:xsl="http://www.w3.org/TR/WD-xsl" > > However, within the tutorial, on the same page just a little lower > down, the author correctly states that this is a previous standard and > no longer works. (As I found to be true.) The correct namespace is > xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0" > > So, with the stylesheet declaration changed in the xml file and the > namespace declaration changed in the stylesheet file, all is well with > FF and IE. > > Thanks for your insight, and I sent a link to this conversation to the > tutorial author. > > > > Boris Zbarsky wrote: > > [email protected] wrote: > > > Let me see if I've got this straight: > > > > > > It doesn't work in FF because FF see's the error but it works in IE > > > because IE is blind to the error. > > > > More or less. More precisely, as I understand it, IE implemented an early draft > > of a spec, and didn't fix their code when the spec changed before being finalized. > > > > See also item 1 and item 7 at http://www.mozilla.org/projects/xslt/faq.html > > > > -Boris