Subject: [xsl] Matching the first text element in a subtree From: Martin Holmes <mholmes@xxxxxxx> Date: Tue, 18 Apr 2006 16:34:11 -0700 |
<div0> <p> <title>Blah</title> was published in... </p> </div0>
Here, the first text node is the one following the title tag, which is wrong. So what I want to do is select the first text node which is a descendant (rather than a direct child) of the p tag. I just can't find a way to do this. If I use this:
oXygen complains that "Axis in pattern must be child or attribute", meaning presumably that only element nodes, not text nodes, can be selected using this axis. If I use this:
then I get all text nodes which are the first child of their parents, rather than only the first text node which is a descendant of the p tag.
Can anyone suggest how to go about selecting the first text node which is a descendant of the p tag?
All help appreciated, Martin -- Martin Holmes University of Victoria Humanities Computing and Media Centre (mholmes@xxxxxxx) Half-Baked Software, Inc. (mholmes@xxxxxxxxxxxxxxxxxxxxx) martin@xxxxxxxxxxx
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] wikiwyg in mediawiki, bryan rasmussen | Thread | Re: [xsl] Matching the first text e, J.Pietschmann |
Re: [xsl] wikiwyg in mediawiki, Robert Koberg | Date | [xsl] Aargh - wrong template applie, Ian Eure |
Month |