[
Lists Home |
Date Index |
Thread Index
]
* Kurt Cagle <kurt.cagle@gmail.com> [2005-01-28 14:17]:
> > But I do agree. I, as participant of the KDE project, think I
> > see a general resistance and misunderstanding towards XML. When
> > an XML document needs a small, automated correction it's not
> > written as an XSLT identity transform, but as a text-parsing
> > Perl script, obviously horrible.
>
> Ouch. I've actually started doing something with XUL - bundling
> small (helper) XSLT classes in with the XUL code then putting a
> functional invocation on the transforms, in essence calling them
> as functions. In addition to simplifying a lot of the XML
> transactions that I work with, I find that it helps the XSLT
> newbies on my team get a better handle that XSLT really is just
> another computer language, one that can in fact be used in
> precisely the same manner as any other language.
I've only recently begun to use XSLT outside of a web server for
standard programming tasks.
I'm using XSLT to generate my Ant scripts. It works well. Very
well. I don't know why more people haven't done this. XSLT is a
standard task in Ant, and it is all you need to make up for the
lack of conditionals in Ant itself.
I'd wanted to use XSLT in Ant for quite some time, since I
started programming in Java in 2003. If I think about it, these
where the blocks.
1) Experience with Maven, which left me the with the impression
that scripting in XML, in certian situations, was somehow
inheriently foolish.
Maven is a solution that uses an XML language to generate
Ant. It is complex and tempremental. It is difficult to
read. If you know Ant, that knowledge is lost since your Ant
is burried in another language, Jelly.
Maybe it's because those are /my/ angle brackets, but my
XSLT code is easy to read and it is easy to add a new task
to all my projects.
2) If it is such an obvious solution, and no one is doing it,
then, there must be something wrong.
I used XSLT with XUL, to great effect on a project in 2003, and
that's why I'm here, fascinated with XML and XSLT, and what else
you can do with them.
XUL or XHTML are excellent applications of XSLT.
As far as PDE goes, why have AST's for the code editor at all?
Why not have XML, XPath, and XSLT?
--
Alan Gutierrez - alan@engrm.com
|