Attribute type tokenized: ID, IDREFS

atttype-highlight-tokenized tokenizedtype-highlight-id-idrefs

example17.xml


<?xml version="1.0" encoding="US-ASCII"?>

<!DOCTYPE root
  [
  <!ELEMENT root ANY>
  <!ELEMENT foo ANY>
  <!ATTLIST foo id ID #REQUIRED>
  <!ELEMENT bar ANY>
  <!ATTLIST bar idrefs IDREFS #REQUIRED>
  ]
>

<root>
  
  <foo id="A001"/>
  <foo id="A002"/>
  <foo id="A003"/>

  <bar idrefs="A001"/>
  <bar idrefs="A001 A002"/>
  <bar idrefs="A002 A003"/>

</root>

Notes

Content of this site is © Wayne Conrad. All rights reserved.