File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes XML and Related Technologies and the fly likes XSL Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "XSL" Watch "XSL" New topic


Balaji Loganathan
author and deputy

Joined: Jul 13, 2001
Posts: 3150
I just wondering why XSL based validation is not so famous or not widely used ?
Madhav Lakkapragada
Ranch Hand

Joined: Jun 03, 2000
Posts: 5040
Good article. This probably works for some cases but we need to use a lot of caution in taking this approach. (I haven't read the article in depth, yet).
Well, IMO, any type of validation is basically to check if the data is valid for a particular business purpose. Thus we are extracting business rules and attempting to implement them in a Style Sheet.
I, for one consider this as crossing boundaries. Keep the business rules where they belong. If the style sheet is the ONLY way in for the input data, maybe you can use this approach. But if the data is likely to come from more than one sources, then I wouldn't want to put them in the Style Sheet.
Also, the fact that any change in the business rules will force a change in the style sheets.
Hence, I am not a big fan of using style sheets for validation.
My two cents worth......
- madhav

Take a Minute, Donate an Hour, Change a Life
Roseanne Zhang
Ranch Hand

Joined: Nov 14, 2000
Posts: 1953
Notice the publishing date is 1999, one millennium ago! I'm not planning to read it.
I agree. Here's the link:
subject: XSL
It's not a secret anymore!