Problem solved, thank you!
Mike
On 9/9/05, Alex Vigdor <av...@co...> wrote:
> 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:
>=20
> document('/design/dept.xml')
>=20
> 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
>=20
> document('/design/dept.xml.rdf')
>=20
> -Alex
>=20
> On Sep 9, 2005, at 11:50 AM, Mike B wrote:
>=20
> > 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
>=20
>
|