XML Editor
Sign up for a WebBoard account Sign Up Keyword Search Search More Options... Options
Chat Rooms Chat Help Help News News Log in to WebBoard Log in Not Logged in
Show tree view Topic
Topic Page 1 2 3 4 5 6 7 8 9 Go to previous topicPrev TopicGo to next topicNext Topic
Postnext
asdf asdfSubject: XSL - find and replace?? Newbie needs help
Author: asdf asdf
Date: 28 Oct 2006 05:13 AM
Man this stuff is so hard...

hi i have the following xml file and i need to covert each text node "control/part" into two colums/cells so that the first number ( only the first number in each node) is in the first column and the text is in the second, i understand that i need a find replace to add in a </td> <td> after the first number (ie. 5.6) but i cannot figure it out??







<control>
<part>
&lt;table&gt; &lt;tr&gt; &lt;td&gt; 5.6 first there was a great deal 34 of wagering over the new horse on the track &lt;/td&gt; &lt;/tr&gt; &lt;/table&gt;
</part>
<part>
&lt;table&gt; &lt;tr&gt; &lt;td&gt; 7.6 second there was a great deal of wagering over the new horse on the track &lt;/td&gt; &lt;/tr&gt; &lt;/table&gt;
</part>
<part>
&lt;table&gt; &lt;tr&gt; &lt;td&gt; 9.6 third there was a great deal of wagering over the new horse on the track &lt;/td&gt; &lt;/tr&gt; &lt;/table&gt;
</part>
</control>

Posttop
asdf asdfSubject: XSL - find and replace?? Newbie needs help
Author: asdf asdf
Date: 28 Oct 2006 01:31 PM
Thanks anyway,
with great delight I managed to figure it out, took me all day of learning and stuff, but it felt good to know that I still got it...

What i have realised is that i am going to be one of the best at this technology in my company and XML rocks

Feel free to suggest another way to do it, but at the moment i have enough for work on monday thank god!



 
Topic Page 1 2 3 4 5 6 7 8 9 Go to previous topicPrev TopicGo to next topicNext Topic
Download A Free Trial of Stylus Studio 6 XML Professional Edition Today! Powered by Stylus Studio, the world's leading XML IDE for XML, XSLT, XQuery, XML Schema, DTD, XPath, WSDL, XHTML, SQL/XML, and XML Mapping!  
go

Log In Options

Site Map | Privacy Policy | Terms of Use | Trademarks
Stylus Scoop XML Newsletter:
W3C Member
Stylus Studio® and DataDirect XQuery ™are from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2016 All Rights Reserved.