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

RE: xsl:include or xsl:import

Subject: RE: xsl:include or xsl:import
From: "bryan" <bry@xxxxxxxxxx>
Date: Wed, 29 May 2002 11:46:35 +0200
xslt import external stylesheet
Nilesh wrote:

>I am trying to use external stylesheet into current stylesheet. One way
to 
>do it is either include or import stylesheet. The problem with this is,

>which I do not know how to reference, how to set the href attrbibute
from a 
>java class?

>I mean I can write this and it will go up one directory and look for
that 
>stylesheet.
>  <xsl:include href="../xsl-temp.xsl"/>

>but I wanted to set href value from outside. I don't know how to do
that.

Can't from xslt, you would have to do it from your application, load the
xslt as a dom, write in your xsl:include dynamically, using appendChild
or whatever method fits your circumstance, then apply the stylesheet.
Probably best not to save the stylesheet, or you might end up with a
bunch of xsl:include unless you remember to delete the element before
saving. Note that I would recommend not doing this however, find some
other way to resolve your difficulties or you'll be sorry in six months.



 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.