xsl-list
[Top] [All Lists]

Re: Convert apply-templates to call-template?

2006-01-31 01:42:25
On 1/31/06, Phillip B Oldham <phillip(_dot_)oldham(_at_)kilo75(_dot_)com> wrote:
I'm currently passing the item nodeset to a template using
<xsl:call-template /> based on the url, which is working fine for other
parts of the system. The Celko technique is being used to store a BTree
in SQL, which I need to reproduce based on the lh and rh tags.

I don't think <xsl:apply-templates /> will work, because I can't match
the <item> tag as there are other parts of the app which use it.

I still don't understand what you want to do, though. You can match on
item with sub-elements (<xsl:template match="item[lh='7']" />, with
the caveat that @match isn't XPath), but I don't understand what your
expected result is. You say you use call-template for any items, but
what is the underlying problem you're trying to solve? Even elements
in your matched node has access to all the axis-nodes, so if you match
on <item> you can do parent::container/@url. Do you mean
match="container[(_at_)url='something']/item" ?


Alex
--
"Ultimately, all things are known because you want to believe you know."
                                                         - Frank Herbert
__ http://shelter.nu/ __________________________________________________

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--



<Prev in Thread] Current Thread [Next in Thread>