XML代码:
<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type="text/xsl" href="XSLTFile1.xsl"?>
<survey name = "Example Survey">
<question type = "text" name = "Name" />
<question type = "text" name = "Industry" />
<question type = "radio" name ="Education">
<choice value = "Junior High School"/>
<choice value = "High school" />
<choice value = "University" />
</question>
<question type = "dropdownlist" name = "Income">
<select value = "less than 1000" />
<select value = "between 1000 and 2000" />
<select value = "more than 2000" />
</question>
</survey>
<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type="text/xsl" href="XSLTFile1.xsl"?>
<survey name = "Example Survey">
<question type = "text" name = "Name" />
<question type = "text" name = "Industry" />
<question type = "radio" name ="Education">
<choice value = "Junior High School"/>
<choice value = "High school" />
<choice value = "University" />
</question>
<question type = "dropdownlist" name = "Income">
<select value = "less than 1000" />
<select value = "between 1000 and 2000" />
<select value = "more than 2000" />
</question>
</survey>