Re: XSL template "namespace" problem
I know everyone's chiming in ... we're trying to be helpful.
At 10:40 AM 3/29/2006, you wrote:
Right now, I'm not coding for production, I'm coding for fun to get a "feel" for XSLT. I probably shouldn't have asked such a question on such a mailing list without fully going over a tutorial or proper documentation first.
Don't worry about posting too early (or: don't worry too much; worry about more important things) -- we get such "exploratory" posts all the time. (Sometimes such posts are also "confused", but sometimes we all end up getting a bit confused, it being very difficult to disentangle implicit but sometimes mistaken assumptions on a mailing list. :-)
It's really good that you're doing something light to get a feel for XSLT before trying to put it to use in production. We often find ourselves advising people to do a little research and learning up front before leaping in. XSLT is one of those things where if you get off on the wrong foot, things can be much harder than they have to be, and when people rush in first, they're much more likely to make those early mistakes. Typically the early mistakes come out of misapplying a coding paradigm that doesn't belong to XSLT, and thus trying to make the language work in ways it wasn't designed to. What makes things worse is that often you can get acceptable (or what you consider acceptable) results doing this -- for a while -- hey, it works! -- until your problem crosses a certain complexity threshold, and you're completely stuck dead in a morass of unworkable code. If you had started by taking more time to learn XSLT for itself, this wouldn't have happened and everything would be much easier.
could not possibly work (as several people have mentioned). It won't even parse as XML, so it's not going to work as an XSLT stylesheet.
Only at *that* point are you ready to try running the whole thing dynamically on the client.
In other words, you'll move quickest to a sure understanding of XSLT if you try it out in a classical architecture first, before you move on to all the complexities and possibilities of multi-tier processing.
Good luck, Wendell
PURCHASE STYLUS STUDIO ONLINE TODAY!
Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!
Download The World's Best XML IDE!
Accelerate XML development with our award-winning XML IDE - Download a free trial today!
Subscribe in XML format