XML Script logo
Processing methods on subobjects of the target
Code
<HTML >
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0" WIDTH="293" >
   <TD >one</TD>
</TABLE>

<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0" WIDTH="293" >
   <TD >two</TD>
</TABLE>
</HTML>

<_template name="tdtemplate" >
<th > # .__content # </th>
</_template>

<_method element="TD" template="tdtemplate" />

<_process element="$HTML" />
Output
<HTML >
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0" WIDTH="293" >
   <TD >one</TD>
</TABLE>

<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0" WIDTH="293" >
   <TD >two</TD>
</TABLE>
</HTML>

<HTML >
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0" WIDTH="293" >
   
<th > one </th>

</TABLE>

<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0" WIDTH="293" >
   
<th > two </th>

</TABLE>
</HTML>
Ref

x.8701

XML Script homepage | Documentation home | XML Script docs | Command list | Function list | X-Tract docs

X-Stream, X-Tract and XML Script are trade marks of DecisionSoft Limited
© Copyright 1998-2000 DecisionSoft Limited