|
Subject: [xsl] Change of attribute value From: "Miraodb" <miraodb@xxxxxxxxxxx> Date: Thu, 3 Nov 2005 16:41:38 +0100 |
Hi all,
first of all, i want to apologize if that message is posted twice... coz i
don't really know if it worked fine the first time.
i have the following issue:
i want to change the value of attrivute on the fly. For example let's say i
have
<node name="ChrisW" description="Testmodel for WI/WE">
<node_condition/>
<node name="WE" description="">
<node_condition/>
<action/>
<node name="ai" description="">
<node_condition/>
<action/>
<node name="sub_ai" description="">
<node_condition/>
<action/>
</node>
</node>
<node name="kgi" description="">
<node_condition/>
<action/>
<node name="sub_kgi" description="">
<node_condition/>
<action/>
</node>
</node>
</node>
<node name="WI" description="">
<node_condition/>
<action/>
<node name="ai" description="">
<node_condition/>
<action/>
</node>
<node name="kgi" description="">
<node_condition/>
<action/>
</node>
</node>
</node>
i want to have this after my xslt:
<node name="ChrisW" description="Testmodel for WI/WE">
<node_condition/>
<node name="WE" description="">
<node_condition/>
<action/>
<node name="WE_ai" description="">
<node_condition/>
<action/>
<node name="WE_sub_ai" description="">
<node_condition/>
<action/>
</node>
</node>
<node name="WE_kgi" description="">
<node_condition/>
<action/>
<node name="WE_sub_kgi" description="">
<node_condition/>
<action/>
</node>
</node>
</node>
<node name="WI" description="">
<node_condition/>
<action/>
<node name="WI_ai" description="">
<node_condition/>
<action/>
</node>
<node name="WI_kgi" description="">
<node_condition/>
<action/>
</node>
</node>
</node>
so basically, i want to skip the first level of element <node>, and then
pick up the attribute @name value of the second level and concat it to all
sublevel attributes @name
I'm sure this is possible using some kind of recusion.
Any help, would be much appreciated.
Thanks in advance.
fabrice
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| Re: [xsl] Change of Attribute Value, Ragulf Pickaxe | Thread | AW: [xsl] access the root element, Huditsch Roman |
| [xsl] access the root element, Kai Hackemesser | Date | RE: [xsl] access the root element, drkm |
| Month |