We know that XML XSLT can output directly to the XML browser, such as IE 5.0 or more, but we have to consider that there are many browsers to support XML, in which case we need to be on the server. Convert to HTML output to the browser, this temporary transition method is probably to use within a period of time.
With JSP plus the TabLib ID library, we can complete this conversion.
The famous Open Source Project Group Jakarta.apache.org has this feature TANGLIB: http://jakarta.apache.org/taglibs/doc/xsl-doc/intro.html
According to the Jakarta configuration method, it is a bit cumbersome, you need to modify or define web.xml. I have been exploited, using the following quite simple approach, you can make JSP to run the XSL this identity library.
XSL ID libraries have three key packages: Xerces.jar can get Xalan.jar in http://xml.apache.org/ can get xsl.jar from http:////////////xml.apache.org/ Jakarta.apache.org/taglibs/doc/xsl-doc/intro.html get
1. Place these three packages in the Tomcat's CommON / lib directory, or put them directly into the ClassPath environment.
2. Call the logos library in JSP:
The original JAKARTA recommended method is:
<% @ Taglib Uri = "http://jakarta.apache.org/taglibs/xsl-1.0" prefix = "xsl"%>
This will need to define http://jakarta.apache.org/taglibs/xsl 1.0 points under /Web-inf/web.xml. Such as:
Although this approach is very standard, if your container has been using Tomcat, it will not have to.