This week's book giveaway is in the Jython/Python forum.
We're giving away four copies of Murach's Python Programming and have Michael Urban and Joel Murach on-line!
See this thread for details.
Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

How to parse IP address field with XSLT  RSS feed

 
Vladas Razas
Ranch Hand
Posts: 385
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I am trying to parse IP address like 255.255.255.0 with XSLT and split it into 4 different field. I.e. I have:

<address>192.168.1.1</address>

and want to make

<A>192</A>
<B>168</B>
<C>1</C>
<D>1</D>

Thank you!
 
Balaji Loganathan
author and deputy
Bartender
Posts: 3150
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
this link would help you to get an idea.
 
Vladas Razas
Ranch Hand
Posts: 385
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thank you!
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!