jQuery in Action, 2nd edition*
The moose likes XML and Related Technologies and the fly likes How to parse IP address field with XSLT Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "How to parse IP address field with XSLT" Watch "How to parse IP address field with XSLT" New topic
Author

How to parse IP address field with XSLT

Vladas Razas
Ranch Hand

Joined: Dec 02, 2003
Posts: 385
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

Joined: Jul 13, 2001
Posts: 3150
this link would help you to get an idea.
Vladas Razas
Ranch Hand

Joined: Dec 02, 2003
Posts: 385
thank you!
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: How to parse IP address field with XSLT