Hi,

On Sonntag, 11. März 2007, Christian Boltz wrote:
> [...]
>
> > > I usually get headache. OK, it wasn't a big problem
> > > with this small file, but I had "some" bad experience with the
> > > XLS files for the german SUSE Linux FAQ...
> >
> > From my work with XSLT, you get headache when
> > [...]

My list was not meant as criticism of your files, it was more a 
*general* rant. ;)

I don't say, XML/XSLT is the solution for everything. However, I saw 
many XML files and XSLT stylesheet broken by design but the author 
vociferous complains about the deficiancies of XML/XSLT instead of 
reconsidering his/her style. :) (Again, it's not a criticism of your 
files.)


> [...]
> > * you don't use the full potential of XSLT. For example using
> > xsl:for-each instead of xsl:apply-templates where it is in most
> > cases more appropriate.
>
> Hmmm...
>
> [EMAIL PROTECTED]:~/suse-linux-faq/dtd/html> grep for-each * |wc -l
> 73
> [EMAIL PROTECTED]:~/suse-linux-faq/dtd/html> grep apply-templates * |wc -l
> 13

In most cases xsl:for-each is considered bad style. :) XSLT is *not* 
Perl, Python, Ruby, ...

Here are some articles that I think are worth reading:

* How Not to Use XSLT
http://www2.sims.berkeley.edu/academics/courses/is290-8/s04/lectures/5/dragons/allslides.html

* Shortening XSLT Stylesheets
http://www.xml.com/pub/a/2003/06/11/short-xslt.html

* Five XSLT Basics (November 26, 2003)
http://www.xml.com/pub/a/2003/11/26/learnXSLT.html

* XSLT Questions and Answers
http://www.dpawson.co.uk/xsl/sect2/sect21.html


> Another headache candidate:
>
> * you need a table of content / menu _and_ (part of the) content in
> the same output file (this explains why the LaTeX output was easier
> - it does the TOC automatically)

Hmn, I am not sure, if I understand your problem completely.


> [...]
>
> > In most cases, XSLT is good enough. But I agree, for some parts
> > you need Aspirin. ;-)
> >
> | addsig *g*

;-)


Bye,
Tom


-- 
Thomas Schraitle

----------------------------------------------------------------------
SUSE LINUX GmbH      >o)   Documentation Specialist
Maxfeldstrasse 5     /\\   
90409 Nuernberg     _\_v   http://en.opensuse.org/Documentation_Team
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to