SXLST vs. XLST: Some practical questions
Immanuel Normann <[email protected]> Fri, 12 Dec 2003 17:47:30 +0100
| Newsgroups | gmane.lisp.scheme.ssax-sxml |
|---|---|
| Organization | University of the Saarland, AG Siekmann, D 66123 Saarbruecken |
| Message-ID | <[email protected]> |
Hello,
I'd like to figure out the power of SXLST. Therefor I read the paper
(http://okmij.org/ftp/papers/SXSLT-talk.pdf) where a lot of convincing
arguments are listed (pro SXLST and against XLST). I am particularly
interested in the effect of "my-ss" in
(pre-post-order doc my-ss)
As far as I understand "my-ss" is a list of cons (<tag> . <function>).
Thus the <function> is applied to a node of the sxml-tree whenever the
tag-name matches <tag>. But what if I want some more context sensitive
matching inside "my-ss".
Take for instance the following XLST snipet:
<xsl:template match="elem1/[elem2/@key='value']">
<xsl:copy-of select="//elem3[@id=current()/elem4]/*"/>
</xsl:template>
Essentially the question is how this pre-post-order function works
together with SXPAth?! Where can I learn more about it (not just SXPATH
on its own)?
Thanks,
Immanuel Normann
-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills. Sign up for IBM's
Free Linux Tutorials. Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click