xsl-list
[Top] [All Lists]

Re: How to match a element + part of an immediate text sibling?

2004-01-13 21:14:38
Sorry for the newbie question. I did search the archive, but I guess I just
didn't know what keywords to use.

Say you are doing an HTML-to-HTML transformation and you want to transform:
<p> the quick <em>brown</em> fox jumps </p>to:
<p> the <em>quick brown fox</em> jumps </p>How would you match the <em>
element and the two words immediately surrounding it, so you can rearrange
them in the template? Or would you match p[em] instead and then rearrange
its children somehow?

Thanks,
Chulsung Kim


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list