Developer Discussion
Ämne: Re: [MarkLogic Dev General] XSLT check if result document has been created
The closest thing to a map I've found in XSLT is
-Original Message-
From: general-boun...@developer.marklogic.com
[mailto:general-boun...@developer.marklogic.com] On Behalf Of
ån: Ryan Dew [mailto:ryan.j@gmail.com]
> Skickat: den 28 juli 2014 17:20
> Till: MarkLogic Developer Discussion
> Ämne: Re: [MarkLogic Dev General] XSLT check if result document has
> been created
>
> I believe you should be able to do something like the f
Logic Developer Discussion
Ämne: Re: [MarkLogic Dev General] XSLT check if result document has been created
If you want to skip the duplicates, one common pattern is to track them using a
map. You could also use distinct-values, but a map can be more efficient.
let $m-seen := map:map()
for $i i
ew [mailto:ryan.j@gmail.com]
> Skickat: den 28 juli 2014 17:20
> Till: MarkLogic Developer Discussion
> Ämne: Re: [MarkLogic Dev General] XSLT check if result document has
> been created
>
> I believe you should be able to do something like the following to get what
> you wan
ryan.j@gmail.com]
> Skickat: den 28 juli 2014 17:20
> Till: MarkLogic Developer Discussion
> Ämne: Re: [MarkLogic Dev General] XSLT check if result document has been
> created
>
> I believe you should be able to do something like the following to get what
> you want:
>
&g
: [MarkLogic Dev General] XSLT check if result document has been created
I believe you should be able to do something like the following to get what you
want:
mailto:.//@fileref,'/')%22/>>
On Mon, Jul 28, 2014 at 9:08 AM, Mary Holstege
m
I believe you should be able to do something like the following to get what
you want:
On Mon, Jul 28, 2014 at 9:08 AM, Mary Holstege
wrote:
>
> I think you may be running afoul of URI resolution.
> Since the URI you are giving to doc-available
I think you may be running afoul of URI resolution.
Since the URI you are giving to doc-available is a relative
URI, it will be resolved relative to the static base URI, which
per XSLT is the URI of the stylesheet itself.
//Mary
On Mon, 28 Jul 2014 07:58:04 -0700, Erik Zander
wrote:
> Hi All
Hi All
I’m working on an xslt transform where I’m extracting data about images from a
document and put
that data into result document, It all works fine except for when the same
image occurs more than once as I then get conflicting uris,
my code looks like this