Subject: Re: [xsl] Q: to Jeni Tennison regarding your APress titles... From: "M. David Peterson" <m.david@xxxxxxxxxx> Date: Wed, 24 Nov 2004 10:15:03 -0800 |
Hi David,Hey Jeni :)
I am looking forward to it!
Right: "Beginning XSLT 2.0" won't be out for a while -- I want the
book to be as accurate as possible, and the specs are still changing
(albeit not by much and ever...so...slowly...). My original plan was
to wait until the end of the Last Call period before finishing off the
book, though Apress is keen for me to get it done sooner.
Meanwhile, "Beginning XSLT" (1.0) has just been reprinted for a secondNice! They're demanding a good title for sure!
time, I guess due to customer demand.
Would be a good approach but for now I have about an hour a day for studies related to all languages and technologies I use... possibly first part of next year would be a good time to simply sit down and run through from beginning to end over maybe a 2-3 day session so I can get a better feel for the order and flow you chose for this title.... But for now...
What would your advice be on using your Beginning XSLT title as an
instrument to sharpen and fine tune my skill sets as such that, in the
end, I will be a better XSLT programmer because of the effort put forth?
If you don't want to read the book from start to finish,
one approachAh! Very good idea...
would be to look at each chapter's Review Questions and try to answer
them.
I don't give "correct" answers, but the purpose of the questionsThis is a very good idea for an approach. Will work quite well with everything else combined in with it.
is to make sure you understand the material in the chapter fairly
thoroughly, so if you find a question is making you think, you could
take it as a hint to go back and read the relevant section of the
chapter.
Agreed. Although this is an area I feel pretty comforable in there are a few that, although I understand them, still trip me up from time to time. Probably the biggest is namespaces and as such I plan to spend a good deal of time taking my level of understanding to a much higher level in this particular area.
- Are there specifics areas in which you feel a lot of so-called
"experts" tend to miss the boat in how they understand something or approach particular problems?
I know that it took me a long time to understand the difference
between XSLT patterns (which match) and XPath expressions (which
select), but once you understand this particular distinction many
things in XSLT become a lot clearer. It's also an area where the
language used in some books that I've read can be pretty fuzzy.
Whitespace and namespace handling are other things that it took me aI should have read forward one more sentence :) It seems namespace handling is a zinger for a lot of us. :)
long time to get my head around, but they are more rarely important.
Constructing a good algorithm for performing a calculation usingAbsolutely! I dont think anybody (except maybe Knuth of course :) could claim to know all there is to know about building solid and efficient alogorithms for whatever the task may be or even the language being used. They always seems to be a better or faster way of performing a task. It seems to me that with a greater understanding of all the little details it will be a much easier task to fine tune and rework code such that it takes full advantage of what the language has to offer. Going through this process with your book is something I feel is going to help me locate and internalize all these little details that I know are out there, I just dont know exactly what they are (obviously if I did I wouldnt have the need to go through this process :) A good example of one that came up on the list last week is the proper useage of the number() function. I have always used the number function when stripping out non-numeric characters from a string to then compare as a number. Of course, through the help of David Carlisle, I discovered that this was an unnecessary step as XSLT is designed to cast from string to number (if possible) when doing a comparison. Something else I learned was a fantastic little trick that I had never seen used before: using the number function to dynamically determine what element to use based on document position (e.g. foo(number(@bar)) would allow you to select the element in the position that was contained in foo/@bar. These are the types of little details that I am hoping to possibly re-discover during this process.
recursion is a major skill in XSLT, particularly balancing the
conflicting requirements of writing readable, maintainable code,
writing efficient code, and writing reusable code.
Yeah, even as much as I use them I still find myself having to methodically step through my code everytime to make sure that I using proper context and such. This is definitely an error that can easily trip up even the best of developers... definitely something that you can never spend enough time practicing :)
- Are there portions of XSLT 1.0 that are rarely used in practice (and as such not well understood) that, if implemented correctly, could make my XSLT code cleaner, leaner, more efficient, easier to maintain, or easier to fine tune and/or debug?
Keys are the only thing that comes to mind, though perhaps
<xsl:strip-space> and <xsl:preserve-space> are contenders. XSLT 1.0 is
pretty lean: there aren't many features there, so people tend to use
most of them.
Ah, thats a good number to remember. Definitely will help in both learning and teaching XSLT 2.0.
- And finally, leading up to your 2.0 release due out in a few
months what areas of this title would you suggest as areas that will
help me better understand (and therefore implement) the content you
set forth in this upcoming title? Or in other words, from your
standpoint, what portion(s) of XSLT 1.0 is and will remain as the
absolute core of XSLT from now until the end of the foreseeable XSLT
future?
"Beginning XSLT 2.0" will be approximately 75% the same as "Beginning
XSLT". The essence of the basic processing model of processing nodes
in order to get results doesn't change: I'd view that as the core of
XSLT.
My other book, "XSLT and XPath On The Edge" is written for moreI didnt see that one there but if its not there when I do my daily "fix" at B&N I will have them order it for me. Again, the idea of even doing this excercise in the first place is to simply rework my brain tissue in such a way as to locate and internalize all the little stuff that seems to get forgotten or never realized when you first begin to use a new development language. Its been quite some time since I frst started developing with XSLT so this process I think is well overdue. None-the-less, its never too late to learn and I'm confident that going through this process will be just the learning process I need to kick my expertise level up one more notch.
advanced XSLT programmers, so perhaps you'd find that more helpful
(though I think "Beginning XSLT" is better written).
Cheers,
Jeni
--- Jeni Tennison http://www.jenitennison.com/
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Q: to Jeni Tennison regar, Jeni Tennison | Thread | Re: [xsl] Q: to Jeni Tennison regar, Jeni Tennison |
Re: [xsl] includes, Jeni Tennison | Date | [xsl] An invitation to join me in m, M. David Peterson |
Month |