Hi all
I got string like this.
New South Wales(NSW), Victoria(VIC), Queensland(QLD), South
Australia(SA), Western Australia(WA), Tasmania(TAS), Australian
Capital Territory(ACT), Northern Territory(NT)
is there anyway i can use XSLT transformation to become
<select>
<option id="NSW" text="New South Wales" />
<option id="VIC" text="Victoria" />
<option id="QLD" text="Queensland" />
<option id="SA" text="South Australia" />
<option id="WA" text="Western Australia" />
<option id="TAS" text="Tasmania" />
<option id="ACT" text="Australian Capital Territory" />
<option id="NT" text="Northern Territory" />
</select>
Please let me know if u can help.
thank you
Han - 27 Oct 2004 05:16 GMT
You can't use XSLT against non-XML data. If your data is quite regular like
your post, regular expression will do. Such as, ([^\(]+)\(([^\)]+). Then you
will have XML to be transformed.
> Hi all
> I got string like this.
[quoted text clipped - 22 lines]
> www.GroupSrv.com
> *-----------------------*