In your stylesheet header, use another namespace:
xmlns:urlD="java:java.net.URLDecoder"

You can then use urlD:decode($url) or similar in xpath expressions. Take witha grain of salt, as I don't use that class, but that's the general method.

Foxy

Swiftpaw Foxyshadis, wildlife artist
[EMAIL PROTECTED] | http://foxyshadis.dyndns.org/
http://foxyshadis.dyndns.org/journal/foxyshadis




From: eric scroger <[EMAIL PROTECTED]>

Greetings,

I have an issue where I need to have XSLT uri decode some data
when it converts an XML file to HTML. I have a java application which
reads records from a database and writes the integer and String data
out to an xml file as attributes which is later transformed using XSLT into HTML.
The XSLT transform complained unless the string data was encoded
using the java.net.URLEncoder class first. However, I cannot figure
out a way to have the encoded data decoded on the fly as the HTML
is generated.


Any ideas?

Thanks,

Eric


_________________________________________________________________
MSN 8 with e-mail virus protection service: 2 months FREE* http://join.msn.com/?page=features/virus




Reply via email to