[xsl] template matching everywhere

Subject: [xsl] template matching everywhere
From: jf <j_f@xxxxxxxxxxx>
Date: Fri, 05 Mar 2004 00:06:56 +0100
Hi,

I would like to write a template that match a particular element but this element could be located anywhere, my xml file may look like :

<ROOT>
<NODE>
maybe some text here
<TOBEMATCHED> </TOBEMATCHED>
maybe some text here
</NODE>
<NODE>
<SUBNODE>
maybe some text here
<TOBEMATCHED> </TOBEMATCHED>
maybe some text here
</SUBNODE>
<SUBNODE>
<SUBSUBNODE>
maybe some text here
<TOBEMATCHED> </TOBEMATCHED>
maybe some text here
</SUBSUBNODE> </SUBNODE> </NODE>
</ROOT>


I would like to write a template that allow me to automatically translate the TOBEMATCHED element while processing his parent.
For example suppose you have to proceed an HTML document and you want to replace each <b> tag with an <em> tag and did other work on other it may help you understand what I want to do.


I hope some one could help me

THX
JF


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



Current Thread