Steps 3 and 4: Link the XSL and Output the XHTML
Page Index
- Step 3: Link the XSL Style Sheet to the XML Document.
- Step 4: You have successfully output your first XHTML document!
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="http://www.w3.org/2001/XMLSchema-instance"> <metadataFile href="xyz.xml"/> <forms> <form formtype="free root" id="2860" lang="Biao Min"> <linguisticform> <unanalyzedform>niu3</unanalyzedform> </linguisticform> <grammatical-relation relation-term="is a" pos="Noun"/> <gloss lang="English" value="cat"> </gloss> ....... ....... ....... </form> </forms> </lexicon> |
Step 4: You have successfully output your first XHTML document!
| Related Links | |
|---|---|
|
About Stylesheets How XSL Works Example Files ![]() How to Use Stylesheets |
|
| User Contributed Notes E-MELD School of Best Practice: How to Use XSL - Step 3 |
+ Add a comment |
| + View comments |


