On Tue, Oct 31, 2000 at 11:05:42PM +0100, Kaiserovi wrote:

> there's nothing really strange with this. select is fully supported on
> apply-templates. however you are trying to select "item" children of the
> root node which only has one child, named "rdf:RDF". when you remove the
> select attribute, this child gets processed implicitly, which means that
> its children are processed one by one (this is the default rule) and
> that's why your second template catches them.

What do u mean?? rdf:RDF seems the root node to me. What do u consider to be
the root node then??


> [EMAIL PROTECTED] wrote:
> > 
> > While applying the following to an rdf format. (for example
> > http://slashdot.org/slashdot.rdf)
> > 
> > <?xml version="1.0"?>
> > <xsl:stylesheet version="1.0"
> >    xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
> > 
> > <xsl:template match="/">
> >         <xsl:apply-templates select="item" />
> > </xsl:template>
> > 
> > <xsl:template match="item">
> >  title:<xsl:value-of select="title" />
> >  link:<xsl:value-of select="link" />
> > </xsl:template>
> > 
> > </xsl:stylesheet>
> > 
> > -------------
> > I get (only) <?xml version="1.0" encoding="UTF-8"?>
> > 
> > It seems to me (the documentation says otherwise) that select is not
> > supported yet in apply-templates because if i remove the select it works
> > (not as expected though, will talk about that later). Is select not
> > supported yet?
> > 
> > --------- excerpt from slashdot.rdf
> > <?xml version="1.0"?><rdf:RDF
> > xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
> > xmlns="http://my.netscape.com/rdf/simple/0.9/">
> > 
> >   <channel>
> >     <title>Slashdot:News for Nerds. Stuff that Matters.</title>
> >     <link>http://slashdot.org/</link>
> >     <description>News for Nerds.  Stuff that Matters</description>
> >   </channel>
> > 
> >   <image>
> >     <title>Slashdot</title>
> >     <url>http://slashdot.org/images/slashdotlg.gif</url>
> >     <link>http://slashdot.org</link>
> >   </image>
> > 
> >   <item>
> >     <title>World's Biggest Roller Coaster</title>
> >     <link>http://slashdot.org/articles/99/07/23/1722251.shtml</link>
> >   </item>
> > 
> >  [.... snip.....]
> > 
> >  [multiple  item ommited ]
> > 

--
Tiago Pascoal  ([EMAIL PROTECTED])               FAX : +351-1-7273394
Politicamente incorrecto, e membro (nao muito) proeminente da geracao rasca.
Recem empossado (engajado) cidadao da republica das bananas.

"It may be that our role on this planet is
 not to worship God, but to create him."
         [Arthur C. Clarke]

Reply via email to