Tuesday, March 13, 2012

XML and XSLT

XML stands for eXtensible Markup Language.

XML is designed to transport and store data.

Simple xml document





XSL stands for EXtensible Stylesheet Language, and is a style sheet language for XML documents.

XSLT stands for XSL Transformations. In this tutorial you will learn how to use XSLT to transform XML documents into other formats, like XHTML.

Steps to use XSLT to transform XML documents into other formats ,like XHTML .

Step1 : Create a simple xml document ,like the one given below called ash.xml

























Step2 : Create an xsl file ,like the one given below ,save it as ash.xsl
































Step 3 :
Modify the first xml document ,that is ash.xml and add the line



under


Here we are including the xsl which we created in step2,so that the xml file will be dispalyed in the form of table ....and we are using
and
respectively .


So you ash.xml will be like below































step 4:

Access the xml document ash.xml from a browser .

C:\Documents and Settings\ashraf\Desktop\oracle\Oracle Materials\XML\ash.xml

No comments:

Post a Comment