XML Editor
Sign up for a WebBoard account Sign Up Keyword Search Search More Options... Options
Chat Rooms Chat Help Help News News Log in to WebBoard Log in Not Logged in
Show tree view Topic
Topic Page 1 2 3 4 5 6 7 8 9 Go to previous topicPrev TopicGo to next topicNext Topic
Andrea MartinezSubject: XSL URL Encoding
Author: Andrea Martinez
Date: 25 Jul 2007 04:00 PM
I need to encode URLs in my XSL stylesheet.

For example, I need to convert: http://datafedwiki.wustl.edu/index.php/ABBI


In the past, since I haven't found a specific method or function to convert the characters into their entity numbers, I have been manually replacing them. I have had to double encode these character entities - as an example:

In order to have a ? appear as its entity number ?
I have had to encode it as &#63&#59; in the stylesheet.

I know there has to be a better and easier way of doing this. Could someone please offer some assistance?


Alberto MassariSubject: XSL URL Encoding
Author: Alberto Massari
Date: 27 Jul 2007 05:35 AM
Hi Andrea,
depending on where you are placing the URL in the stylesheet, you could try using a CDATA section instead of literal text.

Hope this helps,

Topic Page 1 2 3 4 5 6 7 8 9 Go to previous topicPrev TopicGo to next topicNext Topic
Download A Free Trial of Stylus Studio 6 XML Professional Edition Today! Powered by Stylus Studio, the world's leading XML IDE for XML, XSLT, XQuery, XML Schema, DTD, XPath, WSDL, XHTML, SQL/XML, and XML Mapping!  

Log In Options

Site Map | Privacy Policy | Terms of Use | Trademarks
Stylus Scoop XML Newsletter:
W3C Member
Stylus Studio® and DataDirect XQuery ™are from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2016 All Rights Reserved.