Re: Spurious error on recursive invocation of fn:transform
Norm Tovey-Walsh <norm-JkSD5nQpfvpWk0Htik3J/[email protected]> Tue, 24 Nov 2020 10:26:20 +0000
| Newsgroups | gmane.text.xml.saxon.help |
|---|---|
| Message-ID | <[email protected]> |
Michael Kay <mike-JkSD5nQpfvpWk0Htik3J/[email protected]> writes: > Having a stylesheet read it's own source code using doc("") is a > pretty dreadful hack and really has no place in modern XSLT code. In > the general case where compiled stylesheets are deployed around the > world, the source code isn't available at execution time anyway. I don’t disagree, really, since there’s a practical consideration here and precedent from other languages. Compiled C programs don’t have access to their source code, etc. But note that RFC 3986 does *explicitly* license the “same document reference” in section 4.4: When a same-document reference is dereferenced for a retrieval action, the target of that reference is defined to be within the same entity (representation, document, or message) as the reference; therefore, a dereference should not result in a new retrieval action. It isn’t a dreadful hack that someone has discovered just happens to work, it’s a dreadful hack predicated on an aspect of web architecture that seemed reasonably easy to support in 1.0 and which is not easy to support in 3.0. Be seeing you, norm -- Norm Tovey-Walsh Saxonica _______________________________________________ saxon-help mailing list archived at http://saxon.markmail.org/ [email protected] https://lists.sourceforge.net/lists/listinfo/saxon-help
signature.asc
(application/pgp-signature, 832 B)
-----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEE1ury//rzuvqf7fN/hVWfHhJMAHkFAl+838wACgkQhVWfHhJM AHnyIRAAjG1374hBeFEnGyqaR42CGmfzZ3JBVv5ZFxG4kZ5exv0f7H8V8oI+QyJH DrdiOdRDjddmt0LZnmq2Yv/RBNhaoBWzbvi1W7UXTWRg4xf1f88jRjx/u63TKWLr M3BrS0Y6QSwWF2zMMty5eZGG3Q5KaD7JmVoGWRAIltsxIom915zZABp7uC5S4qQa QVT+0VK3V5O2yHbh1UmfLVkS0bzG9tmv1Yilra7otbVZZiPK/MdXKR/kI/360NMB cLtN295SvfxRlBe9KD7KhIUaKqCcBq09WLvb+xAqDQ1sFQjOd8e+wMxzfDSBvY08 D/mDl7yU67sQdyaIuHIT3eLHdn3zOzjpef2A8YCzQidg12kKUnO02/7bN8CPhUHK OcXFnTO5PV9GAvd+mywdFlkk6S8f5XskeUhrF3DZBqslEsQPDWe3TnoiVYMiisqw jAtyeoWN+JCZtpb9vrKsR5KwxX4Oxsgf38dVzIBcUWW31WgvBNWptXHI9kLD1p9J WJHdvhbPkdyuwSZM0hn5FAv3JMZojT9CeMhnitCzL/iiT6w+adSsgIFMTZECSVL4 zaQUu4T+Ha933D78W2eepN/YT4+pEsON2PEqVnGaOAq8MKzXpgaMaS0pLWcRgmFS cN/nHNZb4K5MUy//NQesm2iIkiqqPi/8Qza28FNOvQc2QbSPqfM= =T1CT -----END PGP SIGNATURE-----