I haven't written Java's articles for a long time. I just asked someone to ask about XML XSL issues. Now I just talk about how I handle XML and XSL. We know, we can use different XSL conversion different interfaces to the client according to different client devices, and the popular B / S is usually two kinds of hierarchical ways, one for browser conversion, this requirement The browser has an XML interpretation and conversion device, like IE5, IE6 is very good; second way, we can convert in server-side, then unified output is HTML, which can alleviate the client requirements. The following is the second way. In the company's internal website, we have developed a small system of knowledge management, based on the JSP / servlet framework, because there are many ingredients based on learning research, so I have given it an XML data specification to provide two options to the client. , Server-side conversion HTML and client interpretation. The system framework is like this:
-------------------------------------------------------------------------- ---------------------------------- | | Servlet Container | | ----------------- | | | | | V | ---------------------- | Filter | | ------------------- | | | | _____________________ |
As a JSP / Servlet container, the client's request is processed, and the return data format of our unified JSP / Servlet is processed. After processing, the container will be transferred to the filter. In the filter, we handle the data stream, in memory Convert XML to HTML to return to HTML. XML, XSL and JSP / Servlet are not described in detail, if there is doubt welcome: zlyperson@163.net