Re: No-fail `document` Function Spec

"John L. Clark" <[email protected]>
Newsgroups gmane.text.xml.xslt.extensions
Message-ID <20060313193405.GT7127@rejoice>
On Mon, Mar 13, 2006 at 12:10:44PM -0700, Mike Brown wrote:
> The second argument is not a URI, though; it is a node-set from which
> the URI is derived (base URI of the set's first node in document
> order).

Ah, right.

> All you have to do is reference any node in the document that contains
> the function call.
> This would work, I believe:
> 
> generate-id(res:document("foo.xml"))=generate-id(res:document("foo.xml", document(""), 1))

But the "node in the stylesheet that contains the expression that
includes the call to the document function" could have a different base
URI from the root node of the stylesheet (`document("")`).  Perhaps a
`res:get-calling-node` function, then?  :)

> BTW, I also overlooked that you misplaced some parentheses in those
> generate-id examples.

Thanks.  I've fixed those examples in my working copy; I'll withhold
spamming the list with updated versions until there are more significant
changes to the spec.

Take care,

    John L. Clark

_______________________________________________
exslt mailing list
[email protected]
http://www.exslt.org/list
signature.asc (application/pgp-signature, 189 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.7 (GNU/Linux)

iD8DBQFEFcktjkcskvOyl78RAsdGAJ9N3v/3HMy9q96L6MHFdYbCTYUMhwCfYy8E
2lQKYo4LVFCJiNv4OWjS92Q=
=C5YJ
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.