Hello there!
I have the following simple XML database:
<?xml version="1.0"?>
<?xml-stylesheet href = "sample.xsl" type = "text/xsl"?>
<!DOCTYPE Quiz SYSTEM "sample.dtd">
<Quiz Status="NewVersion">
<QuestionsAnswers QuestionNumber="1"
Question="1"
Answer1 ="correct"
Answer2 ="correct"
Answer3 ="correct"
Answer4 ="correct"
/>
</Quiz>
The following dtd describes the Database:
<?xml version="1.0"?>
<!ELEMENT Quiz (QuestionsAnswers*)>
<!ATTLIST Quiz
Status (NewVersion | UpdatedVersion | CourtesyCopy) #REQUIRED>
<!ELEMENT QuestionsAnswers EMPTY>
<!ATTLIST QuestionAnswers
QuestionNumber CDATA #REQUIRED
Question CDATA #REQUIRED
Answer1 CDATA #REQUIRED
Answer2 CDATA #REQUIRED
Answer3 CDATA #REQUIRED
Answer4 CDATA #REQUIRED
>
I am trying to create an xsl stylesheet that will display the question and then underneath this the four answers each with a corresponding radio button. All I have is the following:
<?xml version = "1.0"?>
<xsl:stylesheet xmlns:xsl = " version = "1.0">
<xsl
utput method = "html"/>
<xsl:template match = "Quiz">
<body bgcolor = "#FFDDFF">
<p><xsl:apply-templates/></p>
</body>
</xsl:template>
</xsl:stylesheet>
I really would appreciate any help as my xsl skills are quite basic
regards,
cathie
I have the following simple XML database:
<?xml version="1.0"?>
<?xml-stylesheet href = "sample.xsl" type = "text/xsl"?>
<!DOCTYPE Quiz SYSTEM "sample.dtd">
<Quiz Status="NewVersion">
<QuestionsAnswers QuestionNumber="1"
Question="1"
Answer1 ="correct"
Answer2 ="correct"
Answer3 ="correct"
Answer4 ="correct"
/>
</Quiz>
The following dtd describes the Database:
<?xml version="1.0"?>
<!ELEMENT Quiz (QuestionsAnswers*)>
<!ATTLIST Quiz
Status (NewVersion | UpdatedVersion | CourtesyCopy) #REQUIRED>
<!ELEMENT QuestionsAnswers EMPTY>
<!ATTLIST QuestionAnswers
QuestionNumber CDATA #REQUIRED
Question CDATA #REQUIRED
Answer1 CDATA #REQUIRED
Answer2 CDATA #REQUIRED
Answer3 CDATA #REQUIRED
Answer4 CDATA #REQUIRED
>
I am trying to create an xsl stylesheet that will display the question and then underneath this the four answers each with a corresponding radio button. All I have is the following:
<?xml version = "1.0"?>
<xsl:stylesheet xmlns:xsl = " version = "1.0">
<xsl
<xsl:template match = "Quiz">
<body bgcolor = "#FFDDFF">
<p><xsl:apply-templates/></p>
</body>
</xsl:template>
</xsl:stylesheet>
I really would appreciate any help as my xsl skills are quite basic
regards,
cathie