I'm running 6.0-1.1. Funny, this runs without trouble in QConsole at my
end:
xquery version "1.0-ml";
resolve-uri('my.jpg', '/foo/bar.xml')
Grtz
> -----Oorspronkelijk bericht-----
> Van: [email protected] [mailto:general-
> [email protected]] Namens David Sewell
> Verzonden: vrijdag 7 december 2012 15:35
> Aan: MarkLogic Developer Discussion
> Onderwerp: Re: [MarkLogic Dev General] resolve-uri working differently
in
> XQuery and XSLT?
>
> What version of MarkLogic are you using? In v 6.0, the bare XQuery
>
> resolve-uri('high-tide.jpg', '/foo/bar.xml')
>
> throws an error complaining that the base argument is a relative URI. It
has
> to
> be e.g.
>
> resolve-uri('high-tide.jpg', 'http://foo/bar.xml')
>
> to work. Or are you using this as an expression within a larger query?
>
> On Fri, 7 Dec 2012, Geert Josten wrote:
>
> > Hi,
> >
> > I was a bit surprised by the fact that this works:
> >
> > resolve-uri('high-tide.jpg', '/foo/bar.xml')
> >
> > But this doesn't..
> >
> > xdmp:xslt-eval(<xsl:stylesheet version="2.0"
> > xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
> > <xsl:template match="node()">
> > <test>
> > <xsl:value-of select="resolve-uri('my.jpg',
> > '/foo/bar.xml')"/>
> > </test>
> > </xsl:template>
> > </xsl:stylesheet>, <test/>)
> >
> > Anyone know a trick to get the same behavior in XSLT?
> >
> > Kind regards,
> > Geert
> >
> > M.Sc. G.P.H. (Geert) Josten
> > Senior Developer
> >
> >
> > Dayon B.V.
> > Delftechpark 37b
> > 2628 XJ Delft
> > The Netherlands
> >
> > T +31 (0)88 26 82 570
> >
> > [email protected]
> > www.dayon.nl
> >
> > De informatie - verzonden in of met dit e-mailbericht - is afkomstig
van
> > Dayon BV en is uitsluitend bestemd voor de geadresseerde. Indien u dit
> > bericht onbedoeld hebt ontvangen, verzoeken wij u het te verwijderen.
> Aan
> > dit bericht kunnen geen rechten worden ontleend.
> > _______________________________________________
> > General mailing list
> > [email protected]
> > http://developer.marklogic.com/mailman/listinfo/general
> >
>
> --
> David Sewell, Editorial and Technical Manager
> ROTUNDA, The University of Virginia Press
> PO Box 400314, Charlottesville, VA 22904-4314 USA
> Email: [email protected] Tel: +1 434 924 9973
> Web: http://rotunda.upress.virginia.edu/
> _______________________________________________
> General mailing list
> [email protected]
> http://developer.marklogic.com/mailman/listinfo/general
_______________________________________________
General mailing list
[email protected]
http://developer.marklogic.com/mailman/listinfo/general