[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
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
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
[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 |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Problem writing xsl to co, Mulberry Technologie | Thread | Re: [xsl] template matching everywh, Wendell Piez |
Re: [xsl] does java fully implement, J.Pietschmann | Date | RE: [xsl] does java fully implement, Michael Kay |
Month |
Keywords