> > > 2. I was looking at fn:id (string) and fn:idref (string). > How do I > > > use it, say if I get a list of values of idref attributes. An > > > example that I may think of is a schema (rough > > > DTD) like: > > > > > > <!ATTLIST Professor (pname, office, pid)> > > > <!ATTLIST Student (sname, major, advisor)> > > > > > > advisor is an IDREF attribute, pid is ID attribute. > > This is my desired output: I want to find the name of > advisors of students who are CS majors. I would like to not > do joins, but try to use fn:id > If I understand your data this is simply id(//Student[major='CS']/advisor), exactly as in XPath 1.0. Michael KayReceived on Monday, 26 January 2004 06:41:27 GMT
This archive was generated by hypermail 2.2.0+W3C-0.50 : Saturday, 22 July 2006 00:10:19 GMT