Internal DTD fragment

G

gipsy boy

"NOTE:In order for such an attribute to be used with the XPath id
function, it must actually be declared in the DTD as being an ID."

How do I do this, define an internal DTD fragment that does this?

Thanks!
 
P

Peter Flynn

gipsy said:
"NOTE:In order for such an attribute to be used with the XPath id
function, it must actually be declared in the DTD as being an ID."

How do I do this, define an internal DTD fragment that does this?

<!DOCTYPE report SYSTEM "http://blah.blah/report.dtd" [
<!ATTLIST list id ID #REQUIRED>
]>

That creates an attribute called "id" of type ID on the "list" element
in that report DTD.

///Peter
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,999
Messages
2,570,243
Members
46,836
Latest member
login dogas

Latest Threads

Top