This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Selecting and "id"


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]