Fixing DTDs

This commit is contained in:
BlackLight 2010-11-22 02:33:00 +01:00
parent 2e5b63ad92
commit 22666f0c3b
3 changed files with 6 additions and 1 deletions

View file

@ -3,6 +3,8 @@
<!DOCTYPE correlations[ <!DOCTYPE correlations[
<!ELEMENT correlations (correlation)*> <!ELEMENT correlations (correlation)*>
<!ELEMENT correlation (from, to)> <!ELEMENT correlation (from, to)>
<!ELEMENT from EMPTY>
<!ELEMENT to EMPTY>
<!ATTLIST from <!ATTLIST from
sid CDATA #REQUIRED sid CDATA #REQUIRED

View file

@ -2,6 +2,7 @@
<!DOCTYPE clusters[ <!DOCTYPE clusters[
<!ELEMENT cluster (alert)*> <!ELEMENT cluster (alert)*>
<!ELEMENT alert EMPTY>
<!ATTLIST cluster id CDATA #REQUIRED> <!ATTLIST cluster id CDATA #REQUIRED>
<!ATTLIST alert <!ATTLIST alert
desc CDATA desc CDATA

View file

@ -64,7 +64,9 @@ __AI_neural_clusters_to_xml ( kmeans_t *km, AI_alerts_per_neuron *alerts_per_neu
} }
fprintf ( fp, "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n" fprintf ( fp, "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n"
"<?xml-stylesheet href=\"default.xsl\" type=\"text/xsl\"?>\n\n" "<?xml-stylesheet href=\"default.xsl\" type=\"text/xsl\"?>\n"
"<!DOCTYPE neural-clusters PUBLIC \"-//blacklight//DTD NEURAL CLUSTERS//EN\" "
"\"http://0x00.ath.cx/neural_clusters.dtd\">\n\n"
"<clusters>\n" ); "<clusters>\n" );
for ( i=0; i < km->k; i++ ) for ( i=0; i < km->k; i++ )