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

Re: statically known namespaces

Subject: Re: statically known namespaces
From: Wendell Piez <wapiez@xxxxxxxxxxxxxxxx>
Date: Mon, 10 Jul 2006 12:13:05 -0400
Re:  statically known namespaces
At 09:22 AM 7/10/2006, Nic wrote:
> Why is it that XQuery has inbuilt namespaces such as "xs", but XSLT does not?
>
> I would have thought that XSLT 2.0 could benefit from having "xsl" and
> "xs" predefined, any thoughts?


Oh yes.

It was my biggest problem when learning XSLT and now I know it really
well it turns out it still is: why do I have to remember all that
template? I can't remember passwords let alone NS URIs.

I know I can have a bit of template code but that's not the
point... good editors are not always available when you're doing
things.

For all my arcane knowledge of XSLT, I don't think being able to recite the namespace by heart is something I can actually do. This is a bit of information scattered copiously throughout my brain-prostheses, but not securely stored in my actual head. Probably that'll bite me some day.


(Now, were I to have to remember and get it wrong, a really friendly processor would tell me not only that no stylesheet was available, but also what namespace it was looking for.)

I like that the binding isn't hard-coded. It makes it possible to switch prefixes around, which is sometimes useful and always a good lesson for XMLers, who need to understand at least the basics of namespaces.

Cheers,
Wendell

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.