• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/timemachine/libxml2-2.7.2/

Lines Matching defs:content

259  * need of a tree to validate the content model. this is done in each
267 xmlElementPtr elemDecl; /* pointer to the content model */
310 "Failed to build content model regexp for %s\n",
345 * this is the content of a saved state for rollbacks
352 xmlElementContentPtr cont; /* pointer to the content model subtree */
652 * @content: the content model
654 * @name: the element name whose content is being built
661 xmlValidBuildAContentModel(xmlElementContentPtr content,
664 if (content == NULL) {
666 "Found NULL content in content model of %s\n",
670 switch (content->type) {
673 "Found PCDATA in content model of %s\n",
682 fullname = xmlBuildQName(content->name, content->prefix, fn, 50);
684 xmlVErrMemory(ctxt, "Building content model");
688 switch (content->ocur) {
711 if ((fullname != fn) && (fullname != content->name))
720 * Simply iterate over the content
723 ocur = content->ocur;
729 xmlValidBuildAContentModel(content->c1, ctxt, name);
730 content = content->c2;
731 } while ((content->type == XML_ELEMENT_CONTENT_SEQ) &&
732 (content->ocur == XML_ELEMENT_CONTENT_ONCE));
733 xmlValidBuildAContentModel(content, ctxt, name);
756 ocur = content->ocur;
771 xmlValidBuildAContentModel(content->c1, ctxt, name);
773 content = content->c2;
774 } while ((content->type == XML_ELEMENT_CONTENT_OR) &&
775 (content->ocur == XML_ELEMENT_CONTENT_ONCE));
777 xmlValidBuildAContentModel(content, ctxt, name);
809 * (Re)Build the automata associated to the content model of this
841 xmlValidBuildAContentModel(elem->content, ctxt, elem->name);
847 xmlSnprintfElementContent(expr, 5000, elem->content, 1);
916 * @type: the type of element content decl
918 * Allocate an element content structure for the document.
920 * Returns NULL if not, otherwise the new element content structure
950 "Internal: ELEMENT content corrupted invalid type\n",
988 * @type: the type of element content decl
990 * Allocate an element content structure.
993 * Returns NULL if not, otherwise the new element content structure
1003 * @cur: An element content pointer.
1005 * Build a copy of an element content description.
1083 * @cur: An element content pointer.
1085 * Build a copy of an element content description.
1098 * @cur: the element content tree to free
1100 * Free an element content structure. The whole subtree is removed.
1120 "Internal: ELEMENT content corrupted invalid type\n",
1141 * @cur: the element content tree to free
1143 * Free an element content structure. The whole subtree is removed.
1155 * @content: An element table
1158 * This will dump the content of the element table as an XML DTD definition
1161 xmlDumpElementContent(xmlBufferPtr buf, xmlElementContentPtr content, int glob) {
1162 if (content == NULL) return;
1165 switch (content->type) {
1170 if (content->prefix != NULL) {
1171 xmlBufferWriteCHAR(buf, content->prefix);
1174 xmlBufferWriteCHAR(buf, content->name);
1177 if ((content->c1->type == XML_ELEMENT_CONTENT_OR) ||
1178 (content->c1->type == XML_ELEMENT_CONTENT_SEQ))
1179 xmlDumpElementContent(buf, content->c1, 1);
1181 xmlDumpElementContent(buf, content->c1, 0);
1183 if ((content->c2->type == XML_ELEMENT_CONTENT_OR) ||
1184 ((content->c2->type == XML_ELEMENT_CONTENT_SEQ) &&
1185 (content->c2->ocur != XML_ELEMENT_CONTENT_ONCE)))
1186 xmlDumpElementContent(buf, content->c2, 1);
1188 xmlDumpElementContent(buf, content->c2, 0);
1191 if ((content->c1->type == XML_ELEMENT_CONTENT_OR) ||
1192 (content->c1->type == XML_ELEMENT_CONTENT_SEQ))
1193 xmlDumpElementContent(buf, content->c1, 1);
1195 xmlDumpElementContent(buf, content->c1, 0);
1197 if ((content->c2->type == XML_ELEMENT_CONTENT_SEQ) ||
1198 ((content->c2->type == XML_ELEMENT_CONTENT_OR) &&
1199 (content->c2->ocur != XML_ELEMENT_CONTENT_ONCE)))
1200 xmlDumpElementContent(buf, content->c2, 1);
1202 xmlDumpElementContent(buf, content->c2, 0);
1206 "Internal: ELEMENT content corrupted invalid type\n",
1211 switch (content->ocur) {
1229 * @content: An element table
1236 xmlElementContentPtr content ATTRIBUTE_UNUSED,
1245 * @content: An element table
1248 * This will dump the content of the element content definition
1252 xmlSnprintfElementContent(char *buf, int size, xmlElementContentPtr content, int englob) {
1255 if (content == NULL) return;
1263 switch (content->type) {
1268 if (content->prefix != NULL) {
1269 if (size - len < xmlStrlen(content->prefix) + 10) {
1273 strcat(buf, (char *) content->prefix);
1276 if (size - len < xmlStrlen(content->name) + 10) {
1280 if (content->name != NULL)
1281 strcat(buf, (char *) content->name);
1284 if ((content->c1->type == XML_ELEMENT_CONTENT_OR) ||
1285 (content->c1->type == XML_ELEMENT_CONTENT_SEQ))
1286 xmlSnprintfElementContent(buf, size, content->c1, 1);
1288 xmlSnprintfElementContent(buf, size, content->c1, 0);
1296 if (((content->c2->type == XML_ELEMENT_CONTENT_OR) ||
1297 (content->c2->ocur != XML_ELEMENT_CONTENT_ONCE)) &&
1298 (content->c2->type != XML_ELEMENT_CONTENT_ELEMENT))
1299 xmlSnprintfElementContent(buf, size, content->c2, 1);
1301 xmlSnprintfElementContent(buf, size, content->c2, 0);
1304 if ((content->c1->type == XML_ELEMENT_CONTENT_OR) ||
1305 (content->c1->type == XML_ELEMENT_CONTENT_SEQ))
1306 xmlSnprintfElementContent(buf, size, content->c1, 1);
1308 xmlSnprintfElementContent(buf, size, content->c1, 0);
1316 if (((content->c2->type == XML_ELEMENT_CONTENT_SEQ) ||
1317 (content->c2->ocur != XML_ELEMENT_CONTENT_ONCE)) &&
1318 (content->c2->type != XML_ELEMENT_CONTENT_ELEMENT))
1319 xmlSnprintfElementContent(buf, size, content->c2, 1);
1321 xmlSnprintfElementContent(buf, size, content->c2, 0);
1326 switch (content->ocur) {
1357 xmlFreeDocElementContent(elem->doc, elem->content);
1376 * @content: the element content tree or NULL
1386 xmlElementContentPtr content) {
1401 if (content != NULL) {
1403 "xmlAddElementDecl: content != NULL for EMPTY\n",
1409 if (content != NULL) {
1411 "xmlAddElementDecl: content != NULL for ANY\n",
1417 if (content == NULL) {
1419 "xmlAddElementDecl: content == NULL for MIXED\n",
1425 if (content == NULL) {
1427 "xmlAddElementDecl: content == NULL for ELEMENT\n",
1572 ret->content = content;
1573 if (content != NULL)
1574 content->parent = (xmlElementContentPtr) 1;
1576 ret->content = xmlCopyDocElementContent(dtd->doc, content);
1636 cur->content = xmlCopyElementContent(elem->content);
1663 * This will dump the content of the element declaration as an XML
1697 xmlDumpElementContent(buf, elem->content, 1);
1708 xmlDumpElementContent(buf, elem->content, 1);
1736 * This will dump the content of the element table as an XML DTD definition
1817 * This will dump the content of the enumeration
2254 * This will dump the content of the attribute declaration as an XML
2348 * This will dump the content of the attribute table as an XML DTD definition
2525 * This will dump the content the notation declaration as an XML DTD definition
2564 * This will dump the content of the notation table as an XML DTD definition
3423 * Search in the DtDs whether an element accept Mixed content (or ANY)
4278 /* Build the regexp associated to the content model */
4288 cur = elem->content;
4773 * returns the first element to consider for validation of the content model
4805 * Try to validate the content model of an element internal function
4809 * the content model is not determinist.
4863 * Check first if the content matches
4875 * go to next element in the content model
4916 * go to next element in the content model
5175 * @content: An element
5263 * Try to validate the content model of an element
5281 cont = elemDecl->content;
5285 /* Build the regexp associated to the content model */
5394 * Buid a minimal representation of this node content
5435 tmp->content = NULL;
5447 tmp->content = xmlStrdup(BAD_CAST "CDATA");
5495 "Element %s content does not follow the DTD, expecting %s, got %s\n",
5499 "Element content does not follow the DTD, expecting %s, got %s\n",
5505 "Element %s content does not follow the DTD\n",
5509 "Element content does not follow the DTD\n",
5613 * @cont: the mixed content model
5616 * Check if the given node is part of the content model.
5766 * Check the new element agaisnt the content model of the new elem.
5778 "Element %s was declared EMPTY this one has content\n",
5787 if ((elemDecl->content != NULL) &&
5788 (elemDecl->content->type ==
5796 ret = xmlValidateCheckMixed(ctxt, elemDecl->content,
5810 * - element types with element content, if white space
5818 "Element %s content does not follow the DTD, Misplaced %s\n",
5858 * Check the new element agaisnt the content model of the new elem.
5870 "Element %s was declared EMPTY this one has content\n",
5886 "Element %s content does not follow the DTD, Text not allowed\n",
5895 * element types with element content, if white space
5932 * Check the new element agaisnt the content model of the new elem.
5943 "Element %s content does not follow the DTD, Expecting more child\n",
6011 if (elem->content == NULL) {
6013 "Text element has no content !\n",
6061 * activated, do not try to check the content model at that level.
6064 /* Check that the element content matches the definition */
6074 "Element %s was declared EMPTY this one has content\n",
6085 if ((elemDecl->content != NULL) &&
6086 (elemDecl->content->type == XML_ELEMENT_CONTENT_PCDATA)) {
6108 cont = elemDecl->content;
6133 cont = elemDecl->content;
6166 * - element types with element content, if white space
6172 const xmlChar *content = child->content;
6174 while (IS_BLANK_CH(*content))
6175 content++;
6176 if (*content == 0) {
6189 cont = elemDecl->content;
6683 xmlChar *notation = cur->content;
6900 * @ctree: an element content tree
6905 * Build/extend a list of potential children allowed by the content tree
7047 nb_elements = xmlValidGetPotentialChildren(element_desc->content,