XML Editor
Sign up for a WebBoard account Sign Up Keyword Search Search More Options... Options
Chat Rooms Chat Help Help News News Log in to WebBoard Log in Not Logged in
Show tree view Topic
Topic Page 1 2 3 4 5 6 7 8 9 Go to previous topicPrev TopicGo to next topicNext Topic
Postnext
Karthik MuruganSubject: 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,

<xsl:processing-instruction name="xml-stylesheet">
<xsl:text>type="text/xsl" href="B.xsl"?</xsl:text>
</xsl:processing-instruction>

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?


Documentxsls.zip

Posttop
(Deleted User) Subject: Sort by lookup values & stylesheets to generated xml output
Author: (Deleted User)
Date: 01 Oct 2008 03:24 PM
Which version of Stylus Studio are you using?
Within Stylus Studio, which XSLT processor?

Thanks,
Alberto

 
Topic Page 1 2 3 4 5 6 7 8 9 Go to previous topicPrev TopicGo to next topicNext Topic
Download A Free Trial of Stylus Studio 6 XML Professional Edition Today! Powered by Stylus Studio, the world's leading XML IDE for XML, XSLT, XQuery, XML Schema, DTD, XPath, WSDL, XHTML, SQL/XML, and XML Mapping!  
go

Log In Options

Site Map | Privacy Policy | Terms of Use | Trademarks
Stylus Scoop XML Newsletter:
W3C Member
Stylus Studio® and DataDirect XQuery ™are from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2016 All Rights Reserved.