This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line!
See this thread for details.
The moose likes XML and Related Technologies and the fly likes Can I use XSLT in place of  business logic Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "Can I use XSLT in place of  business logic" Watch "Can I use XSLT in place of  business logic" New topic
Author

Can I use XSLT in place of business logic

Chenna Krishna
Ranch Hand

Joined: Dec 13, 2002
Posts: 34
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

Joined: Apr 14, 2003
Posts: 2
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

Joined: Dec 13, 2002
Posts: 34
Suave ,
That's Nice,
I got the exact answer..
Thanks a lot
Krishna
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Can I use XSLT in place of business logic