wood burning stoves 2.0*
The moose likes XML and Related Technologies and the fly likes String split and append Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "String split and append" Watch "String split and append" New topic
Author

String split and append

Rakesh Keerthi
Ranch Hand

Joined: Jul 16, 2012
Posts: 136
Hi,

I've the below xml document. here i want to make an xslt document to select only the number before '.' and append it to make a string like 'BVI-Chapter01' and give only this string an anchor tag, here 01 changes accordong the number before '.' in the below xml document.



I want the output to be as below.





here this is just a part of my source output as it is having nearly 700 lines of source code here in the output where ever there is 'er:#BVI_CH_07' the number 07 changes according to the number in the xml for example :'administration order 7.251' and if xml has 'administration order 1.251' , it should be 'er:#BVI_CH_01' and so on.


Thanks
 
wood burning stoves
 
subject: String split and append
 
Similar Threads
DIV causes extra line break if a background color style is added?
retrieve check box value rendered dynamically by a javascript
xslt output problem
popup in small window is not closing automatically
Span contents overflowing even though specified overflow as hidden