xsl-list
[Top] [All Lists]

Re: templates as functions that return a context?

2006-02-24 17:31:02

to reiterate more clearly: is there any way to return a "node in 
context" from a template, 

the basic model in xslt is that xpath selects nodes from the source tree
and xslt templates generate new nodes in the output, you want to doi the
former so you want to use xpath (ie select attributes) rather than xslt
templates.

Xpath2 is more expressive (or at least you can express things more
esaily with less keystrokes) and in particular as you can define
functions within xslt you can make things more re-usable.

it's not a full rec yet but a lot of people are using it already.

Although I don't actually see anything in your problem description that
suggests to me that you could bot do this in xpath 1.

David

________________________________________________________________________
This e-mail has been scanned for all viruses by Star. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________

--~------------------------------------------------------------------
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>