• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Can I use XSLT in place of business logic

 
Chenna Krishna
Ranch Hand
Posts: 34
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi guys,
I have some business logic in Java, I just want know , will it possible to do the same in XSLT.
My business logic look like...
start....
for()
{
if()
{
}
else
{
}
else if()
{
}
else if()
{
}
}
end...
I have few more logic for File handling..
and I have few more try and catch blocks..
is it feasible to use XSLT for business logic..
If yes..
How to write the code ..I am new to the XSLT..
Kindly any one give me the valid suggestions..
waiting
KRish
 
John Suave
Greenhorn
Posts: 2
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Chenna,
No, XSLT can not be used for replacing business logic. XSLT is normally used for transforming XML documents into other XML documents, but you can use XSLT to transform XML to HTML, plain text, RTF, etc.
Basically XSLT is used for transforming data, not implementing business logic. At best, you can use standard XML files to hold properties or other metadata that you want to use to help drive your application.
 
Chenna Krishna
Ranch Hand
Posts: 34
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Suave ,
That's Nice,
I got the exact answer..
Thanks a lot
Krishna
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic