On Wed, 1 Nov 2000 [EMAIL PROTECTED] wrote:

> On Wed, Nov 01, 2000 at 01:26:39PM +0100, Petr Cimprich 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??
> > 
> > The root stuff is a little bit confusing. All you
> > need is to change <xsl:template match="/"> to
> > <xsl:template match="/RDF"> in your transform, it
> > should work.
> 
> Doesn't work because RDF is in the rdf namespace. If i use 
> <xsl:template match="/rdf:RDF"> it complains it doesn't know the namespace,
> and if (there is gotta to be a way to do it) add the rdf namespace to the
> xsl:stylesheet (which seems ackward and would make things difficult to
> transform) it doesn't produce any output. (but no complaints on the
> namespace though)

Try /* then.

-- 
<Matt/>

    /||    ** Director and CTO **
   //||    **  AxKit.com Ltd   **  ** XML Application Serving **
  // ||    ** http://axkit.org **  ** XSLT, XPathScript, XSP  **
 // \\| // **     Personal Web Site: http://sergeant.org/     **
     \\//
     //\\
    //  \\

Reply via email to