From: Adam R. <ad...@ex...> - 2010-04-09 19:44:35
|
> I think the second statement is true. XQuery is perfect for quickly getting > the titles from a large collection of indexed XML documents. But the first > is somewhat debatable. I would argue that XSLT is much better suited to transformations than XQuery. I think both XSLT and XQuery have their place and should be used when appropriate like any tool. They both have their strengths and weaknesses and together they are an excellent package. > My experience is that I can teach people how to do > an XQuery typeswitch tranforms in about an hour or two. Most people prefer > the syntax of XQuery over XSLT. In my experience the opposite is true, it is much easier to teach some basic XSLT than XQuery, the templating approach is very natural and non-programmer types feel much safer writting XSLT as an XML vocabulary than they do XQuery code. I would also argue that IDE's with the Schema for XSLT make it much easier to see problems in the code as you are writting in than with XQuery. -- Adam Retter eXist Developer { United Kingdom } ad...@ex... irc://irc.freenode.net/existdb |