Altova Mailing List Archives>Archive Index >microsoft.public.xsl Archive Home >Recent entries >Thread Prev - XSL Extentions? >Thread Next - Re: XSL Extentions? Re: XSL Extentions?To: NULL Date: 5/15/2007 1:56:00 PM Matt wrote: > I have developed a program that allows a user to generate a customized > HTML listing of search results of nearby locations (restaurants for > example) using XSL templates. I've implemented this using ASP.Net. > > I'd like to create an extension (I think that what it is) that allows > me to do something like this: > > <custom:map-link target="_blank">Map This Location</custom:map-link> > > This would result in the appropriate HTML to create a link to map the > current location (the current location is the location in the context > of the XML document) like so: > > <a href="http://www.mapsite.com? > address=123+Main&City=Dallas&ZipCode=75114" target="_blank">Map This > Location</a> > > I haven't seen many examples of how to do this on the web. Pehaps I'm > searching for the wrong keywords. I don't know if XSL can do this or > if it is an extension to the parser, in which case it would be the XSL/ > XML parser in .Net. I don't think the XSLT processors (XslTransform for .NET 1.x, XslCompiledTransform for .NET 2.0 and later) in .NET support extension elements so putting <custom:map-link target="_blank">Map This Location</custom:map-link> as an extension element into an XSLT stylesheet and process it is not possible. What the XSLT processors supports are extension functions implemented in C# or VB.NET or JScript.NET and extension objects. For the above it might suffice to have a global stylesheet parameter and have the ASP.NET page set that parameter as needed. -- Martin Honnen --- MVP XML http://JavaScript.FAQTs.com/ | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
