Subject:apply templates in order Author:JJJ JJJ Date:25 Oct 2005 09:44 AM
I want to rearrange the order of my XML file via XSLT.
At the moment I am doing this by writing out 10 different <xsl:apply-template select=""> statements.
This seems to take twice as long as just using the <xsl:apply-templates/> element.
Is there a quicker way to rearrange the order that nodes appear or is this the only way?
Thanks.
Subject:apply templates in order Author:JJJ JJJ Date:25 Oct 2005 11:45 AM Originally Posted: 25 Oct 2005 11:36 AM
Here is a sample of the XSLT & XML.
I also had a question on the repetetive nature of the select element.
For example in the candidate template, I continually use <xsl:value-of select="accname"/>. I did this because I do not want every element from the XML to be transformed (some have been deliberately left out) but there may be a quicker way of doing this?