Edit

kc3-lang/libxml2/test/defattr2.xml

Branch :

  • Show log

    Commit

  • Author : Daniel Veillard
    Date : 2001-08-07 01:10:10
    Hash : 48da9100
    Message : allow to inherit attributes from the DTD directly in the tree, this is * SAX.c testXPath.c valid.c xmllint.c include/libxml/valid.h: allow to inherit attributes from the DTD directly in the tree, this is needed for XPath and can be a useful feature. Inherited namespaces are always provided at the tree level now * test/defattr* result/defattr* result/noent/defattr*: added a couple of tests for this feature (XSLT being the prime user). Daniel

  • test/defattr2.xml
  • <!DOCTYPE doc [
    <!ELEMENT doc EMPTY>
    <!ATTLIST doc
         defatt  (0|1)   "0"
         xmlns:tst CDATA #FIXED "http://example.org"
         tst:att (0|1)   "1">
    ]>
    <doc att="1"/>