Re: problem with key

"Albright, Jim [email protected]" <[email protected]> Thu, 15 Apr 2021 15:09:56 -0000
Newsgroups gmane.text.xml.xsl.general.mulberrytech
Message-ID <[email protected]>
--00000000000053061f05c00440fc
Content-Type: text/plain; charset="UTF-8"

Thank you all.  I am happy with my working batch file method.

Jim Albright
Wycliffe Bible Translators
704-562-1529


On Thu, Apr 15, 2021 at 2:47 AM Martin Honnen [email protected] <
[email protected]> wrote:

> Am 15.04.2021 um 00:28 schrieb Albright, Jim [email protected]:
> > In thinking about this, it looks like this can be written as a recursive
> > routine.  Is this correct?
> > Right now I run a batch file and increment the level for each step.
>
> It might be easier for us to help of if you start with a new thread or
> summarize at least the current input and wanted result.
>
> If you want recursion in XSLT you usually need apply-templates instead
> of copy-of so somewhere instead of
>    <xsl:copy-of select="key('SemanticDomainByParent', $parentSD,
> $lookupDoc)"/>
> I supposed you either need to use apply-templates or you want to store
> the copy in a variable and reapply templates with the level variable or
> parameter increased.
> 
>
>
--~----------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
EasyUnsubscribe: http://lists.mulberrytech.com/unsub/xsl-list/3329386
or by email: [email protected]
--~--

--00000000000053061f05c00440fc
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div>Thank you all.=C2=A0 I am happy with my working batch=
 file method.</div><div><br></div><div><div><div dir=3D"ltr" class=3D"gmail=
_signature" data-smartmail=3D"gmail_signature"><div dir=3D"ltr"><div>Jim Al=
bright</div><div>Wycliffe Bible Translators</div><div>704-562-1529<br></div=
></div></div></div><br></div></div><br><div class=3D"gmail_quote"><div dir=
=3D"ltr" class=3D"gmail_attr">On Thu, Apr 15, 2021 at 2:47 AM Martin Honnen=
 <a href=3D"mailto:[email protected]">[email protected]</a> &lt;<a hr=
ef=3D"mailto:[email protected]">xsl-list-service@list=
s.mulberrytech.com</a>&gt; wrote:<br></div><blockquote class=3D"gmail_quote=
" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);=
padding-left:1ex">Am 15.04.2021 um 00:28 schrieb Albright, Jim <a href=3D"m=
ailto:[email protected]" target=3D"_blank">[email protected]=
g</a>:<br>
&gt; In thinking about this, it looks like this can be written as a recursi=
ve<br>
&gt; routine.=C2=A0 Is this correct?<br>
&gt; Right now I run a batch file and increment the level for each step.<br>
<br>
It might be easier for us to help of if you start with a new thread or<br>
summarize at least the current input and wanted result.<br>
<br>
If you want recursion in XSLT you usually need apply-templates instead<br>
of copy-of so somewhere instead of<br>
=C2=A0 =C2=A0&lt;xsl:copy-of select=3D&quot;key(&#39;SemanticDomainByParent=
&#39;, $parentSD,<br>
$lookupDoc)&quot;/&gt;<br>
I supposed you either need to use apply-templates or you want to store<br>
the copy in a variable and reapply templates with the level variable or<br>
parameter increased.<br>
<br>
<br>
</blockquote></div>
<div><!-- begin bl.html.trailer -->
<div style=3D"border-top:1px solid black; background-color: #dddddd;
color: #888888; font-size: smaller; padding: 5px; text-align: center;
font-family: arial,verdana,arial,sans-serif; margin-top:1em; clear:
both; margin: auto">
<a href=3D"http://www.mulberrytech.com/xsl/xsl-list">
XSL-List info and archive</a>
<div style=3D"text-align:center;">
<a style=3D"color: blue;"
  href=3D"http://lists.mulberrytech.com/unsub/xsl-list/3329386"
>EasyUnsubscribe</a>
(<a style=3D"color: blue;"
href=3D"mailto:[email protected]?subject=3Dremove"
>by email</a>)
</div>
</div>
<!-- end bl.html.trailer --></div>

--00000000000053061f05c00440fc--