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

RE: Import HREF

Subject: RE: Import HREF
From: Americo Albuquerque <melinor@xxxxxxx>
Date: Fri, 13 Jun 2003 17:10:54 +0100
asp xml object
Hi

> -----Original Message-----
> From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx 
> [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of Mike Brown
> Sent: Tuesday, June 10, 2003 10:12 PM
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject: Re:  Import HREF
> 
> 
> This is just an educated guess but... You're wanting "/" to 
> be the web root, but the URI resolver used by the XSLT 
> processor is probably not aware of how your web server is 
> configured. "/stuff" to it means something like 
> "file:///C:/stuff" ... so try prefacing the href with 
> /real/path/to/the/web/root (whatever it is).
> 

You could use the APPL_PHYSICAL_PATH server variable to get the root path
and concat with the web path. 
Something like (in VB):
 filepath = Request.ServerVariables("APPL_PHYSICAL_PATH") &
"/Utility/.../file"

Notice that this might not work if you have virtual directories in your web
path.

> 
> Karl J. Stubsjoen wrote:
> > MSXML4.0 on a Windows 2k Server
> > Transformation is being invoked with ASP... XML Object, a 
> Stylsheet, a 
> > Template and a Processor. I have an ASP class which resides in my 
> > /Utility folder and handles the above.  This ASP class is 
> invoked by 
> > many asp pages on the web site.  This class relies on 
> > dbXMLContent_t.xsl as the default stylesheet to transform 
> the XML data 
> > supplied.  The user (web developer - me) has the option of 
> overriding 
> > this default stylesheet (usually 1 or 2 of the many 
> template matches 
> > are overriden).
> > 
> > I can live with the "../../" URI reference, but was hoping 
> there was a 
> > more "absolute" way.  It just means that I have to be aware of this 
> > path when I create a new override stylesheet for the above template.
> > 
> > Karl
> > 
> > ----- Original Message -----
> > From: "Mike Brown" <mike@xxxxxxxx>
> > To: <xsl-list@xxxxxxxxxxxxxxxxxxxxxx>
> > Sent: Tuesday, June 10, 2003 11:43 AM
> > Subject: Re:  Import HREF
> > 
> > 
> > > Karl J. Stubsjoen wrote:
> > > > This:
> > > > <xsl:import href="/utility/dbXMLContent_T.xsl" />
> > > > Doesn't seem to work.
> > > > My hierarchy looks something like this:
> > > >
> > > > / "WEB ROOT"
> > > > /utility/dbXMLContent_T.xsl 
> > > > /admin/recordmaster/document/content.xsl
> > > >
> > > >
> > > > Content.xsl needs to import dbXMLContent_T.xsl.
> > > > The import works if I start the URI as 
> "../../../utility" but not 
> > > > as "/utitilty"
> > >
> > > What XSLT processor are you using? How is the 
> transformation being 
> > > invoked?
> > >
> > >  XSL-List info and archive:  
> > > http://www.mulberrytech.com/xsl/xsl-list
> > >
> > >
> > >
> > 
> > 
> >  XSL-List info and archive:  
> http://www.mulberrytech.com/xsl/xsl-list
> > 
> 
>  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.