Thứ Hai, 4 tháng 8, 2014

Use Trax to tranform xml document

Using 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.

Xml file including a list of records
XSL file

Define a template named provinces to include tamplate named pronvince

Defile a template for element pronvice and fetch its values  for thí this template

Main class

After being built , the ouput.html was generated


The file ouput.html on the browser





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

Đăng nhận xét