This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: cross document id idref pair checks
- To: xsl-list at lists dot mulberrytech dot com
- Subject: RE: [xsl] cross document id idref pair checks
- From: DPawson at rnib dot org dot uk
- Date: Wed, 10 Jan 2001 08:59:46 -0000
- Reply-To: xsl-list at lists dot mulberrytech dot com
> do you mean that, which I took to mean check for
> <xxx id="1" id="2"/>
No David, even I knew that to be wrong.
>
> which can't happen in an XSL input tree, or do you mean checking the
> normal ID constraint that no two ids in the same document
> have the same
> value
Yes, thats it.
which is
> test="count(//*[@id='x'])=1"
> or
> test="not((//*[@id='x'])[2])"
Yes, thats it. I seem to remember a somewhat esoteric method of checking
this,
but that one does work. The negated option makes error reporting easier.
Thanks, DaveP
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list