Re: [xsl] Selecting and "id"

Subject: Re: [xsl] Selecting and "id"
From: Jirka Kosek <jirka@xxxxxxxx>
Date: Tue, 05 Jun 2001 19:15:07 +0200
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

  Jirka Kosek  	                     
  e-mail: jirka@xxxxxxxx

 XSL-List info and archive:

Current Thread