-
Extension Functions in XSLT 1.0
From what I've read, the MSXML components that IE uses for XML processing don't support XPath 2.0, thus they are missing some functions I would like to make use of (like lower-case() ). It appears from various Google searches that custom functions can be written in an XSLT file, would be nice to duplicate some XPath 2.0 functionality, but I've yet been able to get this to work. Are extension functions just not possible with the MSXML dll's or can someone point me in a different direction? Here is my current code:
Code:
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:com="http://www.some.domain/XSLT/Common"
xmlns:func="http://exslt.org/functions"
extension-element-prefixes="func com"
version="1.0">
<func:function name="com:something">
<func:result select="'blahblah'" />
</func:function>
When trying to do a transform that has com:something() in it, I will get an error saying Namespace http://www.some.domain/XSLT/Common does not contain any functions.
Some references:
http://www.exslt.org/
http://www.w3.org/TR/xslt#section-Extension-Functions
Similar Threads
-
Replies: 2
Last Post: 04-04-2005, 04:16 PM
-
Replies: 0
Last Post: 06-21-2001, 05:33 PM
-
By John Rigsby in forum XML
Replies: 1
Last Post: 06-13-2001, 04:26 PM
-
By Jaco De Villiers in forum XML
Replies: 2
Last Post: 04-05-2001, 04:43 AM
-
By Bob Hines in forum Database
Replies: 7
Last Post: 04-27-2000, 11:14 AM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Development Centers
-- Android Development Center
-- Cloud Development Project Center
-- HTML5 Development Center
-- Windows Mobile Development Center
|