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[
<!ELEMENT correlations (correlation)*>
<!ELEMENT correlation (from, to)>
<!ELEMENT from EMPTY>
<!ELEMENT to EMPTY>
<!ATTLIST from
sid CDATA #REQUIRED

View File

@ -2,6 +2,7 @@
<!DOCTYPE clusters[
<!ELEMENT cluster (alert)*>
<!ELEMENT alert EMPTY>
<!ATTLIST cluster id CDATA #REQUIRED>
<!ATTLIST alert
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"
"<?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" );
for ( i=0; i < km->k; i++ )