[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: question about implements-prefix

Subject: RE: question about implements-prefix
From: Don Bruey <dbruey@xxxxxxxxxxxxxxxxxxxxx>
Date: Thu, 6 Dec 2001 15:10:33 -0500
don bruey
Of course, you're right.  I was answering a namespace question, not the
specific XSLT question and I drove the train right off the tracks. 

Don

-----Original Message-----
From: Chris Bayes [mailto:chris@xxxxxxxxxxx]
Sent: Thursday, December 06, 2001 2:57 PM
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject: RE:  question about implements-prefix


> In the case of the original question, the namespace URI 
> mattered. Not putting in the correct URI for the "user" 
> namespace meant that the extension function in question would 
> not be recognized.  

That isn't right! You can put anything in there except a namespace that
means something like "http://www.w3.org/1999/XSL/Transform" i.e.

<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                xmlns:msxsl="urn:schemas-microsoft-com:xslt"
                xmlns:user="anyoldname"
                version="1.0">

  <msxsl:script language="VBScript" implements-prefix="user">
     function formatArg(idate)
       formatArg = ucase(idate)
     end function
  </msxsl:script>

  <xsl:template match="testcode">
    <xsl:value-of select="user:formatArg(date)"/>
  </xsl:template>

</xsl:stylesheet>

Would work just as well

Ciao Chris

XML/XSL Portal
http://www.bayes.co.uk/xml


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.