Google Answers Logo
View Question
 
Q: Rendering XML through multiple stylesheets ( No Answer,   2 Comments )
Question  
Subject: Rendering XML through multiple stylesheets
Category: Computers > Programming
Asked by: lczajka-ga
List Price: $10.00
Posted: 07 Nov 2002 11:50 PST
Expires: 07 Nov 2002 14:33 PST
Question ID: 102070
What is the most straightforward way to render an XML document
differentially, using a different style sheet, dependant on the source
url

I include this directive in my xml

<?xml-stylesheet type="text/xsl"
href="..\xsl\render-specification.xsl"?>

which renders the xml through the "render-specification.xsl"  However
I want to also render some of the xml through a different xsl.

How do I accomplish this?

Clarification of Question by lczajka-ga on 07 Nov 2002 13:56 PST
I think so.

But I need clarification.

It looks like the following code is extracted from an xml document.
And it looks like the href parameter somehow tags the referring
request.

but how do we get to differential rendering?  Through the media
attribute?

-----------------------------------------------------------------------
<?xml version="1.0"?>
<?xml-stylesheet href="scores.xsl" type="text/xsl"?>
<?xml-stylesheet href="scores_wap.xsl" type="text/xsl" media="phone"?>
<?xml-stylesheet href="scores_print.xsl" type="text/xsl"
media="print"?>
<results showName="New Port Richey Open" location="New Port Richey,
FL" showDate="7/31/01">
...
</results>
Answer  
There is no answer at this time.

Comments  
Subject: Re: Rendering XML through multiple stylesheets
From: tox-ga on 07 Nov 2002 12:26 PST
 
Iczajka-ga,

http://www-106.ibm.com/developerworks/xml/library/x-tipxsltjx/listing4.html

Is that what you are looking for?
Subject: Re: Rendering XML through multiple stylesheets
From: tox-ga on 07 Nov 2002 14:05 PST
 
http://www-106.ibm.com/developerworks/xml/library/x-tipxsltjx/index.html

Try that link, I believe it talks about what you are asking.

-Tox-ga

Important Disclaimer: Answers and comments provided on Google Answers are general information, and are not intended to substitute for informed professional medical, psychiatric, psychological, tax, legal, investment, accounting, or other professional advice. Google does not endorse, and expressly disclaims liability for any product, manufacturer, distributor, service or service provider mentioned or any opinion expressed in answers or comments. Please read carefully the Google Answers Terms of Service.

If you feel that you have found inappropriate content, please let us know by emailing us at answers-support@google.com with the question ID listed above. Thank you.
Search Google Answers for
Google Answers  


Google Home - Answers FAQ - Terms of Service - Privacy Policy