aspose file tools*
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 EJB 3 in Action this week in the EJB and other Java EE Technologies 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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Can I use XSLT in place of business logic
 
Similar Threads
I always find it everywhere!!!!!
Embedded Scripting Languages: Success Stories? Jython?
How to present my resultset in an easy way?
XSLT as a JSP's murderer
What to use when Applying XSL to 150Mb XML file