Re: question on p:directory-list and base-uri()

Norm Tovey-Walsh <ndw@nwalsh.com> writes:
> I think that the p:directory-list step is perhaps being too clever here. Or maybe I’m just not being clever enough at the moment…

It’s nothing to do with directory-list per-se. It occurred to me this morning that you’d have the same problem with this pipeline:

  <p:load href="test.xml"/>

  <p:for-each name="base-uris-directories">
    <p:with-input select="//c:directory/c:directory" />
    <p:xslt>
      <p:with-input port="stylesheet" href="test.xsl"/>
    </p:xslt>
  </p:for-each>

If you started with the “correct” output from a previous p:directory-list (or, really, any XML document with xml:base attributes) in test.xml.

And, indeed, I was right. That example produces the wrong output in exactly the same way.

                                        Be seeing you,
                                          norm

--
Norm Tovey-Walsh <ndw@nwalsh.com>
https://norm.tovey-walsh.com/

> Do not seek to follow in the footsteps of men of old; seek what they
> sought.--Matsuo Basho

Received on Wednesday, 26 February 2025 07:13:39 UTC