Subject: Re: [xsl] Getting variable yet most immediate parentNode From: Wendell Piez <wapiez@xxxxxxxxxxxxxxxx> Date: Thu, 27 Sep 2007 18:54:07 -0400 |
In addition, you have three ways of writing 'answers': ,../answers, ../../answers and ../../../answers. I am sure that while you were writing it you were thinking something like "it must be possible to achieve this effect more easily"... There are several ways to code around the path-depth problem, but the easiest is probably to leave the path out completely, if you are certain that "answer" elements are what they are at any level: answer elements (and even if you do find later that you have different treatment for different answer-elements, you will simply add a new rule):
I ususally advise against it, but this is a good place to code:
<xsl:apply-templates select=".//answers" />
Cheers, Wendell
====================================================================== Wendell Piez mailto:wapiez@xxxxxxxxxxxxxxxx Mulberry Technologies, Inc. http://www.mulberrytech.com 17 West Jefferson Street Direct Phone: 301/315-9635 Suite 207 Phone: 301/315-9631 Rockville, MD 20850 Fax: 301/315-8285 ---------------------------------------------------------------------- Mulberry Technologies: A Consultancy Specializing in SGML and XML ======================================================================
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Getting variable yet most, Abel Braaksma | Thread | Re: [xsl] Getting variable yet most, Abel Braaksma |
Re: [xsl] XSL generating PHP/MySQL, Abel Braaksma | Date | Re: [xsl] Getting variable yet most, Abel Braaksma |
Month |