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 xsl:key
-Original Message-
From: general-boun...@developer.marklogic.com
[mailto:general-boun...@developer.marklogic.com] On Behalf
Zander
Frå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 following to get what
you want
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 in $list
anyway
/Erik Zander
Frå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 following to get what
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:
xsl:template match=//db:informalfigure[descendant::db:imagedata and
@role='figure']
xsl:variable name=curImage
select=substring-after
[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 want:
xsl:template match
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
I believe you should be able to do something like the following to get what
you want:
xsl:template match=//db:informalfigure[descendant::db:imagedata and
@role='figure']
xsl:variable name=curImage select=
substring-after(.//@fileref,'/')/
xsl:variable name=id select=