| OLD | NEW |
| 1 /* | 1 /* |
| 2 * schematron.c : implementation of the Schematron schema validity checking | 2 * schematron.c : implementation of the Schematron schema validity checking |
| 3 * | 3 * |
| 4 * See Copyright for the status of this software. | 4 * See Copyright for the status of this software. |
| 5 * | 5 * |
| 6 * Daniel Veillard <daniel@veillard.com> | 6 * Daniel Veillard <daniel@veillard.com> |
| 7 */ | 7 */ |
| 8 | 8 |
| 9 /* | 9 /* |
| 10 * TODO: | 10 * TODO: |
| (...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 126 * | 126 * |
| 127 * A Schematrons definition | 127 * A Schematrons definition |
| 128 */ | 128 */ |
| 129 struct _xmlSchematron { | 129 struct _xmlSchematron { |
| 130 const xmlChar *name; /* schema name */ | 130 const xmlChar *name; /* schema name */ |
| 131 int preserve; /* was the document passed by the user */ | 131 int preserve; /* was the document passed by the user */ |
| 132 xmlDocPtr doc; /* pointer to the parsed document */ | 132 xmlDocPtr doc; /* pointer to the parsed document */ |
| 133 int flags; /* specific to this schematron */ | 133 int flags; /* specific to this schematron */ |
| 134 | 134 |
| 135 void *_private; /* unused by the library */ | 135 void *_private; /* unused by the library */ |
| 136 xmlDictPtr dict;» » /* the dictionnary used internally */ | 136 xmlDictPtr dict;» » /* the dictionary used internally */ |
| 137 | 137 |
| 138 const xmlChar *title; /* the title if any */ | 138 const xmlChar *title; /* the title if any */ |
| 139 | 139 |
| 140 int nbNs; /* the number of namespaces */ | 140 int nbNs; /* the number of namespaces */ |
| 141 | 141 |
| 142 int nbPattern; /* the number of patterns */ | 142 int nbPattern; /* the number of patterns */ |
| 143 xmlSchematronPatternPtr patterns;/* the patterns found */ | 143 xmlSchematronPatternPtr patterns;/* the patterns found */ |
| 144 xmlSchematronRulePtr rules; /* the rules gathered */ | 144 xmlSchematronRulePtr rules; /* the rules gathered */ |
| 145 int nbNamespaces; /* number of namespaces in the array */ | 145 int nbNamespaces; /* number of namespaces in the array */ |
| 146 int maxNamespaces; /* size of the array */ | 146 int maxNamespaces; /* size of the array */ |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 179 }; | 179 }; |
| 180 | 180 |
| 181 struct _xmlSchematronParserCtxt { | 181 struct _xmlSchematronParserCtxt { |
| 182 int type; | 182 int type; |
| 183 const xmlChar *URL; | 183 const xmlChar *URL; |
| 184 xmlDocPtr doc; | 184 xmlDocPtr doc; |
| 185 int preserve; /* Whether the doc should be freed */ | 185 int preserve; /* Whether the doc should be freed */ |
| 186 const char *buffer; | 186 const char *buffer; |
| 187 int size; | 187 int size; |
| 188 | 188 |
| 189 xmlDictPtr dict; /* dictionnary for interned string names */ | 189 xmlDictPtr dict; /* dictionary for interned string names */ |
| 190 | 190 |
| 191 int nberrors; | 191 int nberrors; |
| 192 int err; | 192 int err; |
| 193 xmlXPathContextPtr xctxt; /* the XPath context used for compilation */ | 193 xmlXPathContextPtr xctxt; /* the XPath context used for compilation */ |
| 194 xmlSchematronPtr schema; | 194 xmlSchematronPtr schema; |
| 195 | 195 |
| 196 int nbNamespaces; /* number of namespaces in the array */ | 196 int nbNamespaces; /* number of namespaces in the array */ |
| 197 int maxNamespaces; /* size of the array */ | 197 int maxNamespaces; /* size of the array */ |
| 198 const xmlChar **namespaces; /* the array of namespaces */ | 198 const xmlChar **namespaces; /* the array of namespaces */ |
| 199 | 199 |
| (...skipping 1578 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1778 | 1778 |
| 1779 xmlCleanupParser(); | 1779 xmlCleanupParser(); |
| 1780 xmlMemoryDump(); | 1780 xmlMemoryDump(); |
| 1781 | 1781 |
| 1782 return (0); | 1782 return (0); |
| 1783 } | 1783 } |
| 1784 #endif | 1784 #endif |
| 1785 #define bottom_schematron | 1785 #define bottom_schematron |
| 1786 #include "elfgcchack.h" | 1786 #include "elfgcchack.h" |
| 1787 #endif /* LIBXML_SCHEMATRON_ENABLED */ | 1787 #endif /* LIBXML_SCHEMATRON_ENABLED */ |
| OLD | NEW |