[xsl] Cross reference question

Subject: [xsl] Cross reference question
From: Fredrik <faid@xxxxxxxxxx>
Date: Wed, 30 Mar 2005 17:46:52 +0200

Just started with XSL and I'm guessing my problem is pretty simple, but I haven't been able to find any examples.
I'm wondering how I can access the attribute ProgrammeName below while I'm processing the node called AdvancedKnowledgeTechnology. I thought I would use the attribute of isCourseOf to find it, but... how?
XML file below, current XSL file further down.

<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"; xmlns:rdf_="http://protege.stanford.edu/rdf"; xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#";>

<rdf:Description rdf:about="AdvancedKnowledgeTechnology"
rdf_:myns:CourseName="Advanced Knowledge Technology"
<rdf_:myns:isCourseOf rdf:resource="MenMachine"/>
<rdf:type rdf:resource="myns:Course"/>
<!-- ... some other similar nodes in between -->
<rdf:Description rdf:about="MenMachine"
rdf_:myns:ProgrammeName="Mens-Machine Communicatie en Artificial Intelligence"
<rdf_:myns:hasCourse rdf:resource="AdvancedKnowledgeTechnology"/>
<rdf_:myns:isProgrammeOf rdf:resource="GroningenRUG"/>
<rdf:type rdf:resource="myns:ProgrammeAI"/>
<!-- some other similar nodes after this one ... -->

<!-- For each description -->
<xsl:for-each select="//*">
	<!-- If it's a course.. -->
	<xsl:if test="contains(local-name(), 'isCourseOf')">
		<!-- Check which programme the course belongs to -->
	<!-- For each attribute of the description -->
	<xsl:for-each select="@*">
 		<!-- print selected attributes -->

Fredrik Henricsson

Current Thread