[xml] FIXED attributes.



        Hi, I'm having some troubles parsing documents with the SAX
inteface, I use an external DTD like this:

<!-- test.dtd ***********************************************-->
<!ENTITY % FF            'fatt            CDATA    #FIXED'>
<!ENTITY % VV            'vatt            CDATA    #REQUIRED'>
<!ELEMENT el EMPTY>
<!ATTLIST el
        %FF;   "somevalue"
        %VV;>
<!--*********************************************************-->

so, a valid xml for this DTD could be:

<?xml version="1.0" standalone="no" ?>
<!DOCTYPE el SYSTEM "test.dtd">
<el vatt="hello"/>


The problem arises in the startElement callback function, when I try the get
the entire attribute list the only attribute that I recive is vatt. Any
suggestions?


Thanks in advance, HJ Laverense




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]