ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> xsl-list
xsl-list
RE: [xsl] Select statement within HREF
by SHEIKH Sajjad other posts by this author
Oct 31 2003 1:20PM messages near this date
RE: [xsl] Select statement within HREF | Re: [xsl] Select statement within HREF
Does it mean we do not have any INLINE or INCLUDE an xml document option
in XSLT?


-----Original Message-----
From: Emmanuil Batsis (Manos) [mailto:mbatsis@[...].gr] 
Sent: 31 October 2003 14:06
To: xsl-list@[...].com
Subject: Re: [xsl] Select statement within HREF




SHEIKH Sajjad wrote:
>  Output
>  ______
>  
>  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/

hth,

-- 
Manos Batsis

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

http://www.netsmart.gr
mbatsis at netsmart dot gr
(+30) 210 33 02 608
(+30) 210 33 02 658 http://forte.netsmart.gr/foaf/manos_foaf.rdf




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


______________________________________________________________
This message has been scanned for all viruses by BTnet VirusScreen. The
service is delivered in partnership with MessageLabs.

This service does not scan any password protected or encrypted
attachments.  

If you are interested in finding out more about the service, please
visit our website at
http://www.btignite.com/internetservices/btnet/products_virusscreen.htm
==============================================================

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
Thread:
SHEIKH Sajjad
David Carlisle

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved