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.
Code:
<app><rdg type="corr" n="S1"> original reading </rdg><rdg type="main-corr"> correction </rdg></app>
I want to show the original reading and correction in a different color. Say, the original in blue and the correction in green.
I believe I understand how show all rdg tags in a certain color.
Code:
<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 figure that out. Help would be much appreciated!