This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: A general question (Mozilla & xsl)
- From: "Joshua Allen" <joshuaa at microsoft dot com>
- To: <xsl-list at lists dot mulberrytech dot com>
- Cc: <Edward dot Middleton at nikonoa dot net>
- Date: Wed, 20 Feb 2002 20:07:39 -0800
- Subject: RE: [xsl] A general question (Mozilla & xsl)
- Reply-to: xsl-list at lists dot mulberrytech dot com
I just tried your file and stylesheet in Netscape 6.2 on Windows and it
worked fine. So I suspect it is an issue with Mozilla builds.
Joshua Allen
Microsoft WebData XML
425.705.7857
> -----Original Message-----
> From: Edward.Middleton@nikonoa.net
[mailto:Edward.Middleton@nikonoa.net]
> Sent: Wednesday, February 20, 2002 7:01 PM
> To: xsl-list@lists.mulberrytech.com
> Subject: RE: [xsl] A general question (Mozilla & xsl)
>
> How do I use a XSLT in Mozilla 0.9.8 Win 2000
>
> In IE
>
> <?xml version="1.0" encoding="UTF-8"?>
> <?xml-stylesheet type="text/xsl" href="files.xsl"?>
> <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
> xmlns:rss="http://purl.org/rss/1.0">
> <rss:channel rdf:about="basedir">
> <rss:title>various files</rss:title>
> <rss:link>http://www.somewhere.com/</rss:link>
> <rss:description>my site description</rss:description>
> </rss:channel>
> <rss:item
>
rdf:about="urn:newsml:pressnet.or.jp:20010516:topicset.iptc-format-nsk:1
">
> <rss:title>my first file</rss:title>
> <rss:link>myfirstfile.html</rss:link>
> </rss:item>
> </rdf:RDF>
>
> works but in Mozilla 0.9.8 under Win 2000 it just gives me the text
fields.
> my stylesheet is below
>
> <?xml version="1.0" encoding="UTF-8"?>
> <xsl:stylesheet version="1.0"
> xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
> xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
> xmlns:rss="http://purl.org/rss/1.0">
> <xsl:output method="xml" version="1.0" encoding="UTF-8"
> indent="yes"/>
>
> <xsl:variable name="root"
select="/rdf:RDF/rss:channel/rss:link"/>
>
> <xsl:template match="/">
> <html>
> <body>
> <h1>CD files</h1>
> <ol>
> <xsl:apply-templates/>
> </ol>
> </body>
> </html>
> </xsl:template>
>
> <xsl:template match="rss:channel/rss:link">
> <a href="{$root}"><xsl:value-of select="$root"/></a>
> </xsl:template>
>
> <xsl:template match="text()"/>
> <xsl:template match="rss:item/rss:link">
> <li>
> <a href="{$root}{current()}"><xsl:value-of
> select="current()"/></a>
> </li>
> </xsl:template>
>
> </xsl:stylesheet>
>
> Thanks in advance
>
> Edward
>
> -----Original Message-----
> From: Joerg Heinicke [mailto:joerg.heinicke@gmx.de]
> Sent: Tuesday, February 19, 2002 7:23 AM
> To: xsl-list@lists.mulberrytech.com
> Subject: Re: [xsl] A general question
>
>
> > Speaking of, does anyone know if Netscape Navigator plans to allow
HTML
> > generated using client-side XSLT to link a CSS? It is very nice
that
> > NN6.1+ allows client-side XSLT transforms, but it seems to limit you
to
> > using HTML with no CSS on the output. It would be nice to be proved
> > wrong on this, too..
>
> Of course, it's allowed. But you are working with a "very old" version
of
> XSL-transformer. NS 6.1 or the corresponding Mozilla 0.9.1 were the
first
> which had a such a transformer, so it is a very early stadium. If you
test
> the latest Mozilla 0.98 you will see a much better support for XSLT.
>
> Regards,
>
> Joerg
>
>
> XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
>
>
> XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list