Re: [xsl] Member function?

Subject: Re: [xsl] Member function?
From: "Dave Pawson dave.pawson@xxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Tue, 2 Aug 2022 15:51:44 -0000
Thanks Michael.

Regards

On Tue, 2 Aug 2022 at 16:48, Michael Kay mike@xxxxxxxxxxxx <
xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote:

> >
> > OK, I'll ask. xsl:variable name=x select= ??  if not document('')
>
> Just replace
>
> <d:sort_index name="my_sort">
>    <d:entry key="Jan" index="0"/>
>    <d:entry key="Feb" index="1"/>
> ...
>
>  </d:sort_index>
>
>  <xsl:variable name="sort_index" select="document('')//d:sort_index"/>
>
> with
>
> <xsl:variable name="sort_index" as="element(d:sort_index)" >
> <d:sort_index name="my_sort">
>    <d:entry key="Jan" index="0"/>
>    <d:entry key="Feb" index="1"/>
> ...
>
>  </d:sort_index>
> </xsl:variable>
>
> >
> >
> > RTF solved a problem (in 1998?). I guess there was less experience
> > around at the time?
> >
> > regards
> >
> >
> >
> >
> >
> > --
> > Dave Pawson
> > XSLT XSL-FO FAQ.
> > Docbook FAQ.
> >
> >
> 
>
> --
Dave Pawson
XSLT XSL-FO FAQ.
Docbook FAQ.

Current Thread