• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

XSL

 
Balaji Loganathan
author and deputy
Bartender
Posts: 3150
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I just wondering why XSL based validation is not so famous or not widely used ?
http://www.ascc.net/xml/en/utf-8/XSLvalidation.html
 
Madhav Lakkapragada
Ranch Hand
Posts: 5040
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Roseanne Zhang
Ranch Hand
Posts: 1953
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Notice the publishing date is 1999, one millennium ago! I'm not planning to read it.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic