This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: Selecting and "id"
- To: xsl-list at lists dot mulberrytech dot com
- Subject: Re: [xsl] Selecting and "id"
- From: Jirka Kosek <jirka at kosek dot cz>
- Date: Tue, 05 Jun 2001 19:15:07 +0200
- References: <F37O8FNpyLAPDVXLuSb00019dfb@hotmail.com>
- Reply-To: xsl-list at lists dot mulberrytech dot com
Jeffrey Langdon wrote:
> <AAA>
> <BBB id = "11" >B1 </BBB>
> <BBB id = "22" >B2 </BBB>
> <BBB id = "33" >B3 </BBB>
> </AAA>
>
>
> "This name may not begin with the '3' character:"
>
> I want to talk to/read all elements that have an id of 33. In this case, of
> course there is only one.
IDs in XML must start with letter or underscore (and several other
characters, see XML spec.). In order to use id() function, you must
attach DTD to your XML file and define attribute id as attribute of type
ID. If you do not want use DTD, you can use key() function instead of
id().
-----------------------------------------------------------------
Jirka Kosek
e-mail: jirka@kosek.cz
http://www.kosek.cz
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list