[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: How to assign a stylesheet to an XML genreated by

Subject: Re: How to assign a stylesheet to an XML genreated by another XSL?
From: Oleg Tkachenko <olegt@xxxxxxxxxxxxx>
Date: Tue, 06 Nov 2001 11:20:46 +0200
xml assign xsl
Hello RABi!

Well you want to add a processing instruction to the generated document, so why don't you try <xsl:processing-instruction> instruction?

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

--
Oleg Tkachenko
Multiconn International, Israel

RABi wrote:

Hi all,

I have an XML generated by my JSP which is made up with 2 parts - part #1
contains some layout parameters (for e.g., languages) and part #2 contains
the data to be shown.

I assigned a stylesheet for the XML which transform part #2 into HTML
decorated data. I want to pass the HTML decorated part with the parameters
part to the next stylesheet, but i have no idea in how to put my
<?xml-stylesheet?> tag in my XSL file.

For e.g., my XML file is like this:

<?xml version="1.0"?>
<?xml-stylesheet href="a.xsl"?>
<PAGE>
    <LAYOUT>
        ... some layout parameters here
    </LAYOUT>
    <CONTENT>
        ... some data here
    </CONTENT>
</PAGE>

then my a.xsl :

<?xml version="1.0"?>
<xsl:stylesheet .................>
<xsl:output method="xml"/>
<xsl:template match="/PAGE/LAYOUT">
    <xsl:copy-of select="/PAGE/LAYOUT"/>
</xsl:template>
<xsl:template match="/PAGE/CONTENT">
    ... do something here
</xsl:template>
</xsl:stylesheet>

so how do i assign a stylesheet to the xml generated by this xsl file? :)


yours, RABi


XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list







XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list



Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.