Re: [xsl] differentiating between *the* document node and anonymous document nodes

Subject: Re: [xsl] differentiating between *the* document node and anonymous document nodes
From: "Martin Honnen martin.honnen@xxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Sun, 19 Mar 2023 12:03:34 -0000
Am 3/19/2023 um 12:44 PM schrieb Chris Papademetrious
christopher.papademetrious@xxxxxxxxxxxx:
>
>
> The $main-doc solution worked perfectly for my needs!
>
>
> Or you need e.g. a global
>
> B  <xsl:variable name="main-doc" select="/"/>
>
> and can then match on
>
> B B  document-node()[. is $main-doc]/*
>

Thinking about it again, in XSLT 3 you should be able to match on

 B B  $main-doc/*

directly instead of the

 B  document-node()[. is $main-doc]/*

Current Thread