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

Re: Select statement within HREF

Subject: Re: Select statement within HREF
From: "Emmanuil Batsis (Manos)" <mbatsis@xxxxxxxxxxx>
Date: Fri, 31 Oct 2003 15:05:57 +0200
afc file editor

SHEIKH Sajjad wrote:

1) Writing a style sheet file.xsl which displays Entreprise folder
hierarcy. 2) It also links AFC to AFC/file.xml etc.
3) AFC/file.xml will then be displayed with the same file.xsl which was
written for Entreprise folder.

Well, this cannot really happen magically. If you want AFC/file.xml to be rendered using the original stylesheet, you either have to add a stylesheet PI in it, or programmatically transform it.

The first is the easiest to do if you have control on the XML files. If that is the case, you can go for the second approach by producing something like the following instead of the links discussed thus far:

<a href="javascript:transformAndShow('AFC/file.xml')">AFC</a>

You will have to implement the transformAndShow function yourself, that is, transform the file then inject it for rendering on the target window. Sarissa [1] may be usefull in this case, as it provides a common API for this on IE and Mozilla-based browsers.

[1] http://sarissa.sourceforge.net/


Manos Batsis

    _  __    __                    __
   / |/ /__ / /____ __ _ ___ _____/ /_
  /    / -_) __(_-</  ' Y _ `/ __/ __/
 /_/|_/\__/\__/___/_/_/_|_,_/_/  \__/

mbatsis at netsmart dot gr
(+30) 210 33 02 608
(+30) 210 33 02 658

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

Current Thread


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.
First Name
Last Name
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.