ok, I am wrong - you right. But I had a few very frustrating days and I wanted to whine and moan about it, okay?
- Visitors can check out the Forum FAQ by clicking this link. You have to register before you can post: click the REGISTER link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. View our Forum Privacy Policy.
- Want to receive the latest contracting news and advice straight to your inbox? Sign up to the ContractorUK newsletter here. Every sign up will also be entered into a draw to WIN £100 Amazon vouchers!
Xsl
Collapse
X
Collapse
-
-
A good metaphor BM.Originally posted by bogeymanI think AtW is suffering from the "if the only tool you know is a hammer, everything looks like a nail" syndrome.
Lot's of things can be done in XSLT, running totals etc, if you just think of them in a different way.
Some people don't really understand it, and XPath for that matter, but there are many times you can do things with a single template, single XPath that would take dozens of lines of standard code.Comment
-
XPath is like SQL, but less powerful. I much prefer Microsoft's LINQ - now that's proper thing, check it out here. This is like XPath but its really like SQL, yet with compile time checks, intellisense etc: awesome real-world application that will be successful.Comment
-
-
Or more like a Java/C# combo with XPath, SQL and a smidgen of this and a smidgen of that, resulting in what appears to be a stew cooked up something rotten.
"XPath is like SQL, but less powerful"
XPath is in many ways more powerful than SQL, unless you're talking about TSQL or PL/SQL which are again essentially hacks added onto an idea to make it fit into something else rather than using it in a way that it was intended.Comment
-
Exactly JB. However, it always seems to happen that purist models (of anything, not just programming) need to be desecrated and bastardised before they are of remotely any use to 'ordinary' folk like me.Originally posted by Joe Blackessentially hacks added onto an idea to make it fit into something else rather than using it in a way that it was intended.
You've come right out the other side of the forest of irony and ended up in the desert of wrong.
Comment
-
Exactly - they added loops with breaks and continues, variables and other goodies to fit something else... real world tasks!. The fact is that such constructs were necessary, and in XSLT they make half arsed attempt to support it - they have loops, if statements and variables, but they are crippled thus requiring far more effort for simple things than it should be necessary.Originally posted by Joe BlackXPath is in many ways more powerful than SQL, unless you're talking about TSQL or PL/SQL which are again essentially hacks added onto an idea to make it fit into something else
And this parallel bullcrap - there are NO multithreading issues with local variables - they are isolated from anything so to disallow LOCAL variables on the basis of high performance (which XSLT can never deliver anyway - its not exactly going to be used for OS writing, so they might not have bothered).
Really bad that some tool that could have fit XML so nicely is in such a crippled state - very low adoption rate is not suprising. They can stick this functionality up their bottoms if they can't provide things that programmers are used to - don't try to remake people, just give them more efficient tools to do their jobs faster instead, leave pure research projects to where they belong - academia, not real world.
Anyhow I found ways to do what I wanted - it took far more lines than it was necessary to do these simple things.Comment
-
XSLT would be good if it wasn't so fecking slow. No implementations deal with siblings in a non-painfully slow fashion. Ironically, .Net's compiled transform is the most pitifully slow thing on the planet.
I'm currently working on something rather large that requires edge caching and some logic (purely in XSLT) on the edge to filter a master dataset that is sent out in XML. I pity Akamai who are going to have to run this chunk of code on their edge clusters.Serving religion with the contempt it deserves...Comment
-
The Saxon API is pretty fast - http://saxon.sourceforge.net/ - it's written by the guy who invented XSLT. Available in Java and .NET flavours...Comment
-
- Home
- News & Features
- First Timers
- IR35 / S660 / BN66
- Employee Benefit Trusts
- Agency Workers Regulations
- MSC Legislation
- Limited Companies
- Dividends
- Umbrella Company
- VAT / Flat Rate VAT
- Job News & Guides
- Money News & Guides
- Guide to Contracts
- Successful Contracting
- Contracting Overseas
- Contractor Calculators
- MVL
- Contractor Expenses
Advertisers

Comment