Steps 3 and 4: Link the XSL and Output the XHTML

Page Index

Step 3: Link the XSL Style Sheet to the XML Document.

Add an XSL Style Sheet reference to your XML document:

<?xml version="1.0" encoding="UTF-8"?>

<!- -This line selects the xsl file. - ->
<?xml-stylesheet type="text/xsl" href="cat.xsl"?>

<lexicon xmlns:xsi="">
<metadataFile href="xyz.xml"/>
   <form formtype="free root" id="2860" lang="Biao Min">
     <grammatical-relation relation-term="is a" pos="Noun"/>
     <gloss lang="English" value="cat"> </gloss>

Click here to view the result in IE 6 or Netscape 6

Step 4: You have successfully output your first XHTML document!

Click here to view some sample XML and XSL files and view their outputs.

Back to Step 2

Back to Step 1

User Contributed Notes
E-MELD School of Best Practice: How to Use XSL - Step 3
+ Add a comment
  + View comments

Back to top Credits | Glossary | Help | Navigation | Site Map | Site Search