Stuart Campbell
unread,May 4, 2012, 3:16:09 AM5/4/12Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to enliv...@googlegroups.com
I'm trying to define a snippet that transforms a range of nodes using the {from to} selector.
The following successfully selects nodes from p:first-child to p:last-child:
(select
(html-resource "foo.html")
{[[:p first-child]] [[:p last-child]]})
However, I'd like to make this more specific and select that range within the context of another node.
I tried this, but it returns an empty list:
(select
(html-resource "foo.html")
[:body :> {[[:p first-child]] [[:p last-child]]}])
Does this make sense? Am I trying to do an impossible thing?
Thanks,
Stuart