[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

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


Subject: [xsl] Re: How to match a element + part of an immediate text sibling?
From: "Chulsung Kim" <chulsung@xxxxxxxx>
Date: Wed, 14 Jan 2004 13:14:38 +0900

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



Current Thread