Sorry for the newbie question, but I'm just starting out with XML and XSLT.

Here's the question.

I'm working on an XML transcription of a document that includes corrections written in the margins and using XSLT to display it in HTML. Here's the tag I was told to use.

<app><rdg type="corr" n="S1"> original reading </rdg><rdg type="main-corr"> correction </rdg></app>

I want to show each reading in a different color. Say, the original in blue and the correction in green.

I believe this is how to show the rdg in blue.

<xsl:template match="rdg">
	<font color="blue">
 	<xsl:apply-templates/></font>
</xsl:template>

What's throwing me is that both are rdg tags and they need to be distinguished based on the type=. I've been looking but can't find out how to do this. Any help would be appreciated.

call me via icq
567877710

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.