Have I got a problem. I am quite new to xslt, and I have the following situation. I am presented with an xml file. I only want to extract the text in four of the tags present in the document. My first approach was to create a template for each of these tags, say the tags are <a>, <b>, <c>, and <d>. The templates are probably identical to the default templates except for one of them, so I probably didn't have to create the others. At any rate, my xslt code now looks something like
<xsl:apply-templates select="//a" />
<xsl:apply-templates select="//b" />
<xsl:apply-templates select="//c" />
<xsl:apply-templates select="//d" />
This produces all the material that want, of course, but unfortunately, it changes the order. I would like the order of the text in the output to be the same as the order of the text in the input. It is just that I only want to select the text in some of the tags present in the document.
How do I do this?