• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/timemachine/gettext-0.17/gnulib-local/lib/libxml/

Lines Matching defs:content

254  * need of a tree to validate the content model. this is done in each
262 xmlElementPtr elemDecl; /* pointer to the content model */
305 "Failed to build content model regexp for %s\n",
340 * this is the content of a saved state for rollbacks
347 xmlElementContentPtr cont; /* pointer to the content model subtree */
647 * @content: the content model
649 * @name: the element name whose content is being built
656 xmlValidBuildAContentModel(xmlElementContentPtr content,
659 if (content == NULL) {
661 "Found NULL content in content model of %s\n",
665 switch (content->type) {
668 "Found PCDATA in content model of %s\n",
677 fullname = xmlBuildQName(content->name, content->prefix, fn, 50);
679 xmlVErrMemory(ctxt, "Building content model");
683 switch (content->ocur) {
706 if ((fullname != fn) && (fullname != content->name))
715 * Simply iterate over the content
718 ocur = content->ocur;
724 xmlValidBuildAContentModel(content->c1, ctxt, name);
725 content = content->c2;
726 } while ((content->type == XML_ELEMENT_CONTENT_SEQ) &&
727 (content->ocur == XML_ELEMENT_CONTENT_ONCE));
728 xmlValidBuildAContentModel(content, ctxt, name);
751 ocur = content->ocur;
766 xmlValidBuildAContentModel(content->c1, ctxt, name);
768 content = content->c2;
769 } while ((content->type == XML_ELEMENT_CONTENT_OR) &&
770 (content->ocur == XML_ELEMENT_CONTENT_ONCE));
772 xmlValidBuildAContentModel(content, ctxt, name);
804 * (Re)Build the automata associated to the content model of this
836 xmlValidBuildAContentModel(elem->content, ctxt, elem->name);
842 xmlSnprintfElementContent(expr, 5000, elem->content, 1);
911 * @type: the type of element content decl
913 * Allocate an element content structure for the document.
915 * Returns NULL if not, otherwise the new element content structure
945 "Internal: ELEMENT content corrupted invalid type\n",
983 * @type: the type of element content decl
985 * Allocate an element content structure.
988 * Returns NULL if not, otherwise the new element content structure
998 * @cur: An element content pointer.
1000 * Build a copy of an element content description.
1078 * @cur: An element content pointer.
1080 * Build a copy of an element content description.
1093 * @cur: the element content tree to free
1095 * Free an element content structure. The whole subtree is removed.
1115 "Internal: ELEMENT content corrupted invalid type\n",
1136 * @cur: the element content tree to free
1138 * Free an element content structure. The whole subtree is removed.
1150 * @content: An element table
1153 * This will dump the content of the element table as an XML DTD definition
1156 xmlDumpElementContent(xmlBufferPtr buf, xmlElementContentPtr content, int glob) {
1157 if (content == NULL) return;
1160 switch (content->type) {
1165 if (content->prefix != NULL) {
1166 xmlBufferWriteCHAR(buf, content->prefix);
1169 xmlBufferWriteCHAR(buf, content->name);
1172 if ((content->c1->type == XML_ELEMENT_CONTENT_OR) ||
1173 (content->c1->type == XML_ELEMENT_CONTENT_SEQ))
1174 xmlDumpElementContent(buf, content->c1, 1);
1176 xmlDumpElementContent(buf, content->c1, 0);
1178 if ((content->c2->type == XML_ELEMENT_CONTENT_OR) ||
1179 ((content->c2->type == XML_ELEMENT_CONTENT_SEQ) &&
1180 (content->c2->ocur != XML_ELEMENT_CONTENT_ONCE)))
1181 xmlDumpElementContent(buf, content->c2, 1);
1183 xmlDumpElementContent(buf, content->c2, 0);
1186 if ((content->c1->type == XML_ELEMENT_CONTENT_OR) ||
1187 (content->c1->type == XML_ELEMENT_CONTENT_SEQ))
1188 xmlDumpElementContent(buf, content->c1, 1);
1190 xmlDumpElementContent(buf, content->c1, 0);
1192 if ((content->c2->type == XML_ELEMENT_CONTENT_SEQ) ||
1193 ((content->c2->type == XML_ELEMENT_CONTENT_OR) &&
1194 (content->c2->ocur != XML_ELEMENT_CONTENT_ONCE)))
1195 xmlDumpElementContent(buf, content->c2, 1);
1197 xmlDumpElementContent(buf, content->c2, 0);
1201 "Internal: ELEMENT content corrupted invalid type\n",
1206 switch (content->ocur) {
1224 * @content: An element table
1231 xmlElementContentPtr content ATTRIBUTE_UNUSED,
1240 * @content: An element table
1243 * This will dump the content of the element content definition
1247 xmlSnprintfElementContent(char *buf, int size, xmlElementContentPtr content, int englob) {
1250 if (content == NULL) return;
1258 switch (content->type) {
1263 if (content->prefix != NULL) {
1264 if (size - len < xmlStrlen(content->prefix) + 10) {
1268 strcat(buf, (char *) content->prefix);
1271 if (size - len < xmlStrlen(content->name) + 10) {
1275 if (content->name != NULL)
1276 strcat(buf, (char *) content->name);
1279 if ((content->c1->type == XML_ELEMENT_CONTENT_OR) ||
1280 (content->c1->type == XML_ELEMENT_CONTENT_SEQ))
1281 xmlSnprintfElementContent(buf, size, content->c1, 1);
1283 xmlSnprintfElementContent(buf, size, content->c1, 0);
1291 if (((content->c2->type == XML_ELEMENT_CONTENT_OR) ||
1292 (content->c2->ocur != XML_ELEMENT_CONTENT_ONCE)) &&
1293 (content->c2->type != XML_ELEMENT_CONTENT_ELEMENT))
1294 xmlSnprintfElementContent(buf, size, content->c2, 1);
1296 xmlSnprintfElementContent(buf, size, content->c2, 0);
1299 if ((content->c1->type == XML_ELEMENT_CONTENT_OR) ||
1300 (content->c1->type == XML_ELEMENT_CONTENT_SEQ))
1301 xmlSnprintfElementContent(buf, size, content->c1, 1);
1303 xmlSnprintfElementContent(buf, size, content->c1, 0);
1311 if (((content->c2->type == XML_ELEMENT_CONTENT_SEQ) ||
1312 (content->c2->ocur != XML_ELEMENT_CONTENT_ONCE)) &&
1313 (content->c2->type != XML_ELEMENT_CONTENT_ELEMENT))
1314 xmlSnprintfElementContent(buf, size, content->c2, 1);
1316 xmlSnprintfElementContent(buf, size, content->c2, 0);
1321 switch (content->ocur) {
1352 xmlFreeDocElementContent(elem->doc, elem->content);
1371 * @content: the element content tree or NULL
1381 xmlElementContentPtr content) {
1396 if (content != NULL) {
1398 "xmlAddElementDecl: content != NULL for EMPTY\n",
1404 if (content != NULL) {
1406 "xmlAddElementDecl: content != NULL for ANY\n",
1412 if (content == NULL) {
1414 "xmlAddElementDecl: content == NULL for MIXED\n",
1420 if (content == NULL) {
1422 "xmlAddElementDecl: content == NULL for ELEMENT\n",
1567 ret->content = content;
1568 if (content != NULL)
1569 content->parent = (xmlElementContentPtr) 1;
1571 ret->content = xmlCopyDocElementContent(dtd->doc, content);
1631 cur->content = xmlCopyElementContent(elem->content);
1658 * This will dump the content of the element declaration as an XML
1692 xmlDumpElementContent(buf, elem->content, 1);
1703 xmlDumpElementContent(buf, elem->content, 1);
1731 * This will dump the content of the element table as an XML DTD definition
1812 * This will dump the content of the enumeration
2245 * This will dump the content of the attribute declaration as an XML
2339 * This will dump the content of the attribute table as an XML DTD definition
2516 * This will dump the content the notation declaration as an XML DTD definition
2555 * This will dump the content of the notation table as an XML DTD definition
3401 * Search in the DtDs whether an element accept Mixed content (or ANY)
4152 /* Build the regexp associated to the content model */
4162 cur = elem->content;
4647 * returns the first element to consider for validation of the content model
4679 * Try to validate the content model of an element internal function
4683 * the content model is not determinist.
4737 * Check first if the content matches
4749 * go to next element in the content model
4790 * go to next element in the content model
5049 * @content: An element
5137 * Try to validate the content model of an element
5155 cont = elemDecl->content;
5159 /* Build the regexp associated to the content model */
5268 * Buid a minimal representation of this node content
5309 tmp->content = NULL;
5321 tmp->content = xmlStrdup(BAD_CAST "CDATA");
5369 "Element %s content does not follow the DTD, expecting %s, got %s\n",
5373 "Element content does not follow the DTD, expecting %s, got %s\n",
5379 "Element %s content does not follow the DTD\n",
5383 "Element content does not follow the DTD\n",
5487 * @cont: the mixed content model
5490 * Check if the given node is part of the content model.
5640 * Check the new element agaisnt the content model of the new elem.
5652 "Element %s was declared EMPTY this one has content\n",
5661 if ((elemDecl->content != NULL) &&
5662 (elemDecl->content->type ==
5670 ret = xmlValidateCheckMixed(ctxt, elemDecl->content,
5684 * - element types with element content, if white space
5692 "Element %s content does not follow the DTD, Misplaced %s\n",
5732 * Check the new element agaisnt the content model of the new elem.
5744 "Element %s was declared EMPTY this one has content\n",
5760 "Element %s content does not follow the DTD, Text not allowed\n",
5769 * element types with element content, if white space
5806 * Check the new element agaisnt the content model of the new elem.
5817 "Element %s content does not follow the DTD, Expecting more child\n",
5885 if (elem->content == NULL) {
5887 "Text element has no content !\n",
5935 * activated, do not try to check the content model at that level.
5938 /* Check that the element content matches the definition */
5948 "Element %s was declared EMPTY this one has content\n",
5959 if ((elemDecl->content != NULL) &&
5960 (elemDecl->content->type == XML_ELEMENT_CONTENT_PCDATA)) {
5982 cont = elemDecl->content;
6007 cont = elemDecl->content;
6040 * - element types with element content, if white space
6046 const xmlChar *content = child->content;
6048 while (IS_BLANK_CH(*content))
6049 content++;
6050 if (*content == 0) {
6063 cont = elemDecl->content;
6557 xmlChar *notation = cur->content;
6774 * @ctree: an element content tree
6779 * Build/extend a list of potential children allowed by the content tree
6921 nb_elements = xmlValidGetPotentialChildren(element_desc->content,