Thứ Sáu, 8 tháng 8, 2014

Use Trax to tranform xml document

Module 8: Create an application, which accepts an XSLT file as its first argument and XML document as second argument. Then, create an application using the following classes, which transforms a Source and sends the output to a Result object. 
1. Use the TransformerFactory class and its methods. 
2. Use the Transformer class and its methods.

B1:Tạo mới 1 java appliccation


B2:Tao file Employees.xml

B3:Tao employee.xsl




B4:code cho ham main


Ket qua:

file output.html duoc tao ra


Khi chay tren web








Không có nhận xét nào:

Đăng nhận xét