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

Re: xsl:function

Subject: Re: xsl:function
From: Jeni Tennison <jeni@xxxxxxxxxxxxxxxx>
Date: Thu, 27 Mar 2003 09:34:36 +0000
Re:  xsl:function
Hi Mac,

> Great, thanks. So, I think <func:function> will work, so I'm trying
> to use that. I'm now just confused as to where the namespace
> declaration should point. You use "my:", but I don't know how I know
> where xmlns:my should point to. My function is just going to return
> true or false after string matching. According to everything I see
> on the web this is considered common knowledge, so noone seems to
> explain this... or I'm just overlooking something super simple.
> Anyway...

xmlns:my can "point to" anything you like. The namespace name that you
associate with the 'my' prefix needs to be a URI (URL or URN) that you
have control over. For example, if you own the domain name
"magusdesigns.com" then a reasonable URI to use would be:

  "http://magusdesigns.com/namespace"

There is no need for you to put anything retrievable at the end of
that URL -- like all namespaces, it's just a unique identifier so that
the processor can work out the difference between your "my" and my
"my".

Cheers,

Jeni

---
Jeni Tennison
http://www.jenitennison.com/


 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.