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

[xsl] Changing the Attibute Value


Subject: [xsl] Changing the Attibute Value
From: "Buddhi D. Mahindarathne" <buddhi@xxxxxxxxxxxxxxxxxxx>
Date: Mon, 21 Jul 2008 12:44:43 +0530

Dear All,
I want to transform following using XSLT 1.0

<VisualObject xsi:type="CChamferEx">
	<maxQSwitch>133</maxQSwitch>
       <Address>Laser Job.Layer.ChamferedRectangle1</Address>
       <Name>ChamferedRectangle1</Name>
       <IsMark>true</IsMark>
       <Visible>true</Visible>
</VisualObject>

And get the output like this:

<VisualObject xsi:type="CFilletEx">
	<maxQSwitch>133</maxQSwitch>
       <Address>Laser Job.Layer.Fillet1</Address>
       <Name>Fillet1</Name>
       <IsMark>true</IsMark>
       <Visible>true</Visible>
</VisualObject>

Here are the things associated with this,

1. Attribute Change
2. Change last part on DOT separated value (I need to keep the last
value with the "Fillet" like [Fillet1] - in the sample number "one")
3. Change the Chamfer to Fillet, but need to keep the last number like
above case.

Please help me on this.

- Regards
  ____            _     _ _     _
 | __ ) _   _  __| | __| | |__ (_)
 |  _ \| | | |/ _` |/ _` | '_ \| |
 | |_) | |_| | (_| | (_| | | | | |
 |____/ \__,_|\__,_|\__,_|_| |_|_|


Current Thread
Keywords