Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

equivalent of server.urlencode in xslt

Status
Not open for further replies.

tinac99

Programmer
Jan 17, 2002
58
US
Hi,

I need to display a recordset wherein one column is linked to <a href="address1">. The address1 is a value containing url coming from a database.

Is there any way I can do a server.urlencode in xslt? I am using ASP 3.0, XML 2.0, MS-SQL 2000.

Tina
 
It is byte-level characters recognition. I think xslt standards are not ready to make itself too much an amalgamate. For asp etc, you can use extension function using "urn:schemas-microsoft-com:xslt" namespace and use jscript's encodeURI().
 
Go to SQL Server Books Online, look up "URL encoding", and see how to create a query that returns the appropriate recordset fields already encoded.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top