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
: [MarkLogic Dev General] XSLT check if result document has been
created
Hello Mike
Yes to use a map would be ideal, and actually one of my first thoughts however
upon googling for maps and xslt I got the impression that XSLT doesn't have
maps, is that the case?
If so I would have to write my own map
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
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
xsl:template
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=