Of course. ancestor is not a function but a integral part of the XPath
specification and fully supportet by the XSLT processor used by Cocoon
2.

Use it like this:

<xsl:value-of select="ancestor::NameOfNode"/>

Look in the XPath specifications for further documentation.

Stefan

> -----Ursprüngliche Nachricht-----
> Von: Hege Hansbakk [mailto:[EMAIL PROTECTED]]
> Gesendet: Donnerstag, 19. Juli 2001 11:14
> An: [EMAIL PROTECTED]
> Betreff: Ancestor and Cocoon 2
> 
> 
> Is it possible to use the ancestor function in Cocoon 2, even 
> though it
> uses the SAX parser? The error I get is that it can not find the
> function...
> 
> Hege

---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>

Reply via email to