Re: [Hypercontent-users] More baseurl trouble
Brought to you by:
alexvigdor
From: Alex V. <av...@co...> - 2005-09-09 15:59:54
|
Hi Mike, The problem you're running into is that the XSL document function resolves relative paths against the user directory. When you want to use the document function to grab stuff out of the repository, just use the full path of the file: document('/design/dept.xml') HyperContent has a custom URI resolver that will find that in the repository for you. You can also grab the metadata for that file, in the same "rdf:RDF" format as includes, by calling document('/design/dept.xml.rdf') -Alex On Sep 9, 2005, at 11:50 AM, Mike B wrote: > Hi all, > > I'm having trouble using $baseurl in XSLT again. Here's the problem: > > At the root level, '/', $baseurl works fine and evaluates as './' in > both the HTML and in XSLT functions such as document(). > > One level below that, '/council', $baseurl transforms fine in the HTML > but not in XSLT functions. For example, when I use the document > function like this: > > document(concat($baseurl,'/design/dept.xml')) > > it fails saying that it 'could not open /usr/share/design/dept.xml'. I > can't figure out why $baseurl is evaluating to '/usr/share' instead of > '../' like it does at the root level. > > Any suggestions would be greatly appreciated. Thanks, > Mike > > > ------------------------------------------------------- > SF.Net email is Sponsored by the Better Software Conference & EXPO > September 19-22, 2005 * San Francisco, CA * Development Lifecycle > Practices > Agile & Plan-Driven Development * Managing Projects & Teams * Testing > & QA > Security * Process Improvement & Measurement * > http://www.sqe.com/bsce5sf > _______________________________________________ > Hypercontent-users mailing list > Hyp...@li... > https://lists.sourceforge.net/lists/listinfo/hypercontent-users |