Hi everyone,
Can you please help me with an xsl:if test xpath expression that tests for the occurence of the following xml. The DTD is provided.
What I need to test for is that within topic the first thing after title is sub.topic, and within that sub.topic the first thing after title is para.module, and within that para.module the first thing is activity.reading.
XML:
<topic>
<title>Planning and Research</title>
<sub.topic>
<title>Task Analysis</title>
<para.module>
<activity.reading>Read pages 45-47.</activity.reading>
</para.module>
</sub.topic>
</topic>
DTD:
<!ELEMENT topic (title, para.module*, sub.topic*)>
<!ELEMENT sub.topic (title, para.module*, idea*)>
<!ELEMENT para.module (#PCDATA | activity.reading)>
Thanks in advance to the kind soul who helps me solve this dilemma.