Subject:Sort by lookup values & stylesheets to generated xml output Author:Karthik Murugan Date:25 Sep 2008 03:18 AM Originally Posted: 25 Sep 2008 03:09 AM
I've a very complex requirement.
I have data.xml and 2 XSL style sheets - A.xsl and B.xsl. I apply the style sheet A to the XML as below,
<?xml-stylesheet type="text/xsl" href="A.xsl"?>
The style sheet A.xsl generates XML output and adds the following processing instruction to the XML output,
Thus the XML output from the union of data.xml and A.xsl file will have this processing instruction at the root,
<?xml-stylesheet type="text/xsl" href="B.xsl"?>
I thought this would instruct the browser to apply style sheet B.xsl to the XML output from the union of data.xml and A.xsl, but none of the browsers do so.
Is this supported?
Basically my requirement is sorting based on a field whose value is obtained from math calculations and looking up other xml files. Since it is not possible to xsl sort using lookup values, I had to keep two xsl files, one to generate the required data and another to sort former's output. Is there a better approach?