> From: Andres, Judith [mailto:[EMAIL PROTECTED]] > > Hi David, > > AFAIK the order of templates in the stylesheet matters:
Andres, *Order* does not matter. *Priority* matters. "parent_node/child_node" gets higher priority then just "child_node". Here is snippet from the specification (http://www.w3.org/TR/xslt) for you: " The order in which the children of the xsl:stylesheet element occur is not significant except for xsl:import elements and for error recovery. Users are free to order the elements as they prefer, and stylesheet creation tools need not provide control over the order in which the elements occur." Vadim > if your template order is > <xsl:template match="child_node">...</xsl:template> > <xsl:template match="parent_node/child_node">...</xsl:template> > then the first template will be called because it matches > parent_node/child_node, too. > > Judith > > > -----Urspr�ngliche Nachricht----- > > Von: David LAGARDERE [SMTP:[EMAIL PROTECTED]] > > Gesendet am: Freitag, 7. Juni 2002 10:08 > > An: [EMAIL PROTECTED] > > Betreff: XPath and Xalan > > > > Hello. > > > > It seems that the XPath syntax is not > > fully supported in the "select" attribute > > of "apply-templates" element : > > <xsl:apply-templates select="parent_node/child_node"> > > doesn't work for me ! The template matching the > > parent_node/child_node is never applied. > > Do I have to use another syntax ? > > > > Thanks in advance. > > > > > > David Lagardere > > > > ___________________________________________________________ > > Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en fran�ais ! > > Yahoo! Mail : http://fr.mail.yahoo.com > > > > --------------------------------------------------------------------- > > 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]> > > --------------------------------------------------------------------- > 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]> --------------------------------------------------------------------- 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]>
