Home | History | Annotate | Download | only in libxml2

Lines Matching defs:entity

103  * XML_PARSER_NON_LINEAR is the threshold where the ratio of parsed entity
105 * and eponential behaviour. A value of 10 correspond to at least 3 entity
113 * Function to check non-linear entity expansion behaviour
114 * This is here to detect and stop exponential linear entity expansion
131 * Do the check based on the replacement size of the entity
165 * knowing an entity reference will take at least 3 bytes
232 xmlLoadEntityContent(xmlParserCtxtPtr ctxt, xmlEntityPtr entity);
321 errmsg = "Detected an entity reference loop\n";
369 errmsg = "Entity value required\n";
2127 * @input: an XML parser input fragment (entity, XML fragment ...).
2347 * @entity: an Entity pointer
2358 xmlNewBlanksWrapperInputStream(xmlParserCtxtPtr ctxt, xmlEntityPtr entity) {
2362 if (entity == NULL) {
2364 "xmlNewBlanksWrapperInputStream entity\n");
2369 "new blanks wrapper for entity: %s\n", entity->name);
2374 length = xmlStrlen(entity->name) + 5;
2386 memcpy(buffer + 2, entity->name, length - 5);
2402 * A parsed entity must not contain a recursive
2405 * [ WFC: Entity Declared ]
2407 * subset which contains no parameter entity references, or a document
2409 * entity must precede any reference to it...
2411 * [ VC: Entity Declared ]
2413 * with "standalone='no'", ... ... The declaration of a parameter entity
2417 * Parameter-entity references may only appear in the DTD.
2424 * - Included in literal in entity values
2425 * - Included as Parameter Entity reference within DTDs
2430 xmlEntityPtr entity = NULL;
2464 * NOTE: in the case of entity values, we don't do the
2466 * entity value to be able to save the internal
2474 * In the internal DTD subset, parameter-entity references
2499 entity = ctxt->sax->getParameterEntity(ctxt->userData, name);
2500 if (entity == NULL) {
2503 * [ WFC: Entity Declared ]
2505 * internal DTD subset which contains no parameter entity
2507 * ... The declaration of a parameter entity must precede
2517 * [ VC: Entity Declared ]
2520 * ... The declaration of a parameter entity must precede
2534 input = xmlNewBlanksWrapperInputStream(ctxt, entity);
2538 if ((entity->etype == XML_INTERNAL_PARAMETER_ENTITY) ||
2539 (entity->etype == XML_EXTERNAL_PARAMETER_ENTITY)) {
2548 input = xmlNewEntityInputStream(ctxt, entity);
2573 if ((entity->etype == XML_EXTERNAL_PARAMETER_ENTITY) &&
2580 "PEReference: %s is not a parameter entity\n",
2613 * Takes a entity string content and process to do the adequate substitutions.
2676 "String decoding Entity Reference: %.30s\n",
2693 "predefined entity has no content\n");
2793 * Takes a entity string content and process to do the adequate substitutions.
3613 * @orig: if non-NULL store a copy of the original entity value
3615 * parse a value for ENTITY declarations
3647 * The content of the entity definition is copied in a buffer.
3657 * When a parameter entity reference appears in a literal entity
3662 * the initial entity and the quote is found
3735 * When a general entity reference appears in the EntityValue in
3736 * an entity declaration, it is bypassed and left as is.
3977 * - an entity reference is processed by recursively processing the
3978 * replacement text of the entity
3982 * parsed entity or the literal entity value of an internal parsed entity
4630 "Comment doesn't start and stop in the same entity\n");
4766 "comment doesn't start and stop in the same entity\n");
4950 "PI declaration doesn't start and stop in the same entity\n");
5014 "PI declaration doesn't start and stop in the same entity\n");
5106 "Notation declaration doesn't start and stop in the same entity\n");
5124 * parse <!ENTITY declarations
5128 * [71] GEDecl ::= '<!ENTITY' S Name S EntityDef S? '>'
5130 * [72] PEDecl ::= '<!ENTITY' S '%' S Name S PEDef S? '>'
5160 "Space required after '<!ENTITY'\n");
5187 "Space required after the entity name\n");
5321 * assuming the entity repalcement was asked for
5348 "xmlParseEntityDecl: entity %s not terminated\n", name);
5352 "Entity declaration doesn't start and stop in the same entity\n");
5358 * Ugly mechanism to save the raw entity value.
5637 * [56] TokenizedType ::= 'ID' | 'IDREF' | 'IDREFS' | 'ENTITY' |
5660 * [ VC: Entity Name ]
5661 * Values of type ENTITY must match the Name production, values
5662 * of type ENTITIES must match Names; each Entity Name must match the
5663 * name of an unparsed entity declared in the DTD.
5828 "Attribute list declaration doesn't start and stop in the same entity\n",
5839 * @inputchk: the input used for the current entity, needed for boundary checks
5868 "Element content declaration doesn't start and stop in the same entity\n",
5927 "Element content declaration doesn't start and stop in the same entity
5946 * @inputchk: the input used for the current entity, needed for boundary checks
5962 * TODO Parameter-entity replacement text must be properly nested
5966 * entity, both must be contained in the same replacement text. For
5967 * interoperability, if a parameter-entity reference appears in a
6170 "Element content declaration doesn't start and stop in the same entity\n",
6244 * @inputchk: the input used for the current entity, needed for boundary checks
6258 * TODO Parameter-entity replacement text must be properly nested
6262 * entity, both must be contained in the same replacement text. For
6263 * interoperability, if a parameter-entity reference appears in a
6409 "Element declaration doesn't start and stop in the same entity\n");
6461 "All markup of the conditional section is not in the same entity\n",
6521 "All markup of the conditional section is not in the same entity\n",
6582 "All markup of the conditional section is not in the same entity\n",
6599 * Parameter-entity replacement text must be properly nested with
6602 * contained in the replacement text for a parameter-entity reference,
6606 * In the internal DTD subset, parameter-entity references can occur
6826 * parse and handle entity references in content, depending on the SAX
6828 * CharRef, a predefined entity, if there is no reference() callback.
6891 * We are seeing an entity reference
6905 * inline the entity.
6914 * The first reference to the entity trigger a parsing phase
6923 * way to make sure both SAX and DOM entity support
6933 * Check that this entity is well formed
6934 * 4.3.2: An internal general parsed entity is well-formed
6953 "invalid entity type found\n", NULL);
6957 * Store the number of entities needing parsing for this entity
7019 "Entity '%s' failed to parse\n", ent->name);
7031 * Now that the entity content has been gathered
7038 * build the entity content. So unless we already went
7039 * though parsing for first checking go though the entity
7040 * content to generate callbacks associated to the entity
7046 * way to make sure both SAX and DOM entity support
7069 "invalid entity type found\n", NULL);
7079 * Entity reference callback comes second, it's somewhat
7088 * If we didn't get any children for the entity being built
7103 * the entity (possibly overwriting some value set by the user
7108 * and, if it's NULL, we copy in whatever was in the entity.
7166 * Copy the entity child list and make it the new
7167 * entity child list. The goal is to make sure any
7169 * document content and not the entity copy.
7232 * parse ENTITY references declarations
7236 * [ WFC: Entity Declared ]
7238 * subset which contains no parameter entity references, or a document
7239 * with "standalone='yes'", the Name given in the entity reference
7240 * must match that in an entity declaration, except that well-formed
7242 * gt, apos, quot. The declaration of a parameter entity must precede
7243 * any reference to it. Similarly, the declaration of a general entity
7248 * for such documents, the rule that an entity must be declared is a
7251 * [ WFC: Parsed Entity ]
7252 * An entity reference must not contain the name of an unparsed entity
7288 * Increate the number of entity references parsed
7293 * Ask first SAX for entity resolution, otherwise try the
7308 * [ WFC: Entity Declared ]
7310 * internal DTD subset which contains no parameter entity
7312 * Name given in the entity reference must match that in an
7313 * entity declaration, except that well-formed documents
7316 * The declaration of a parameter entity must precede any
7318 * Similarly, the declaration of a general entity must
7324 * for such documents, the rule that an entity must be
7333 "Entity '%s' not defined\n", name);
7336 "Entity '%s' not defined\n", name);
7347 * [ WFC: Parsed Entity ]
7348 * An entity reference must not contain the name of an
7349 * unparsed entity
7353 "Entity reference to unparsed entity %s\n", name);
7357 * [ WFC: No External Entity References ]
7359 * entity references to external entities.
7364 "Attribute references external entity '%s'\n", name);
7368 * The replacement text of any entity referred to directly or
7377 "'<' in entity '%s' is not allowed in attributes values\n", name);
7388 "Attempt to reference the parameter entity '%s'\n",
7398 * A parsed entity must not contain a recursive reference
7410 * parse ENTITY references declarations, but this version parses it from
7415 * [ WFC: Entity Declared ]
7417 * subset which contains no parameter entity references, or a document
7418 * with "standalone='yes'", the Name given in the entity reference
7419 * must match that in an entity declaration, except that well-formed
7421 * gt, apos, quot. The declaration of a parameter entity must precede
7422 * any reference to it. Similarly, the declaration of a general entity
7427 * for such documents, the rule that an entity must be declared is a
7430 * [ WFC: Parsed Entity ]
7431 * An entity reference must not contain the name of an unparsed entity
7480 * Increate the number of entity references parsed
7485 * Ask first SAX for entity resolution, otherwise try the
7499 * [ WFC: Entity Declared ]
7501 * internal DTD subset which contains no parameter entity
7503 * Name given in the entity reference must match that in an
7504 * entity declaration, except that well-formed documents
7507 * The declaration of a parameter entity must precede any
7509 * Similarly, the declaration of a general entity must
7515 * for such documents, the rule that an entity must be
7524 "Entity '%s' not defined\n", name);
7527 "Entity '%s' not defined\n",
7534 * [ WFC: Parsed Entity ]
7535 * An entity reference must not contain the name of an
7536 * unparsed entity
7540 "Entity reference to unparsed entity %s\n", name);
7544 * [ WFC: No External Entity References ]
7546 * entity references to external entities.
7551 "Attribute references external entity '%s'\n", name);
7555 * The replacement text of any entity referred to directly or
7564 "'<' in entity '%s' is not allowed in attributes values\n",
7576 "Attempt to reference the parameter entity '%s'\n",
7586 * A parsed entity must not contain a recursive reference
7601 * The entity content is handled directly by pushing it's content as
7607 * A parsed entity must not contain a recursive
7610 * [ WFC: Entity Declared ]
7612 * subset which contains no parameter entity references, or a document
7614 * entity must precede any reference to it...
7616 * [ VC: Entity Declared ]
7618 * with "standalone='no'", ... ... The declaration of a parameter entity
7622 * Parameter-entity references may only appear in the DTD.
7629 xmlEntityPtr entity = NULL;
7649 * Increate the number of entity references parsed
7654 * Request the entity from SAX
7658 entity = ctxt->sax->getParameterEntity(ctxt->userData,
7660 if (entity == NULL) {
7662 * [ WFC: Entity Declared ]
7664 * internal DTD subset which contains no parameter entity
7666 * ... The declaration of a parameter entity must precede
7677 * [ VC: Entity Declared ]
7680 * ... The declaration of a parameter entity must
7690 * Internal checking in case the entity quest barfed
7692 if ((entity->etype != XML_INTERNAL_PARAMETER_ENTITY) &&
7693 (entity->etype != XML_EXTERNAL_PARAMETER_ENTITY)) {
7695 "Internal: %%%s; is not a parameter entity\n",
7698 input = xmlNewBlanksWrapperInputStream(ctxt, entity);
7707 input = xmlNewEntityInputStream(ctxt, entity);
7710 if ((entity->etype == XML_EXTERNAL_PARAMETER_ENTITY) &&
7732 * @entity: an unloaded system entity
7734 * Load the original content of the given system entity from the
7741 xmlLoadEntityContent(xmlParserCtxtPtr ctxt, xmlEntityPtr entity) {
7747 if ((ctxt == NULL) || (entity == NULL) ||
7748 ((entity->etype != XML_EXTERNAL_PARAMETER_ENTITY) &&
7749 (entity->etype != XML_EXTERNAL_GENERAL_PARSED_ENTITY)) ||
7750 (entity->content != NULL)) {
7758 "Reading %s entity content input\n", entity->name);
7767 input = xmlNewEntityInputStream(ctxt, entity);
7776 * Push the entity as the current input, read char by char
7777 * saving to the buffer until the end of the entity or an error
7806 entity->content = buf->content;
7823 * A parsed entity must not contain a recursive
7826 * [ WFC: Entity Declared ]
7828 * subset which contains no parameter entity references, or a document
7830 * entity must precede any reference to it...
7832 * [ VC: Entity Declared ]
7834 * with "standalone='no'", ... ... The declaration of a parameter entity
7838 * Parameter-entity references may only appear in the DTD.
7841 * Returns the string of the entity content.
7849 xmlEntityPtr entity = NULL;
7874 * Increate the number of entity references parsed
7879 * Request the entity from SAX
7883 entity = ctxt->sax->getParameterEntity(ctxt->userData,
7885 if (entity == NULL) {
7887 * [ WFC: Entity Declared ]
7889 * internal DTD subset which contains no parameter entity
7891 * ... The declaration of a parameter entity must precede
7900 * [ VC: Entity Declared ]
7903 * ... The declaration of a parameter entity must
7913 * Internal checking in case the entity quest barfed
7915 if ((entity->etype != XML_INTERNAL_PARAMETER_ENTITY) &&
7916 (entity->etype != XML_EXTERNAL_PARAMETER_ENTITY)) {
7918 "%%%s; is not a parameter entity\n",
7925 return(entity);
8070 * [ WFC: No External Entity References ]
8071 * Attribute values cannot contain direct or indirect entity references
8075 * The replacement text of any entity referred to directly or indirectly in
8573 * - an entity reference is processed by recursively processing the
8574 * replacement text of the entity
8578 * parsed entity or the literal entity value of an internal parsed entity
10375 * Remove locally kept entity definitions if the tree was not built
10403 * parse a general parsed entity
10404 * An external general parsed entity is well-formed if it matches the
12106 * let's parse that entity knowing it's an external subset.
12210 * Ask the Entity resolver to load the damn thing
12250 * let's parse that entity knowing it's an external subset.
12310 * Front ends when parsing an Entity *
12317 * @URL: the URL for the entity to load
12318 * @ID: the System ID for the entity to load
12321 * Parse an external general entity within an existing parsing context
12322 * An external general parsed entity is well-formed if it matches the
12327 * Returns 0 if the entity is well formed, -1 in case of args problem and
12422 * An XML-1.0 document can't reference an entity not XML-1.0
12427 "Version mismatch between document and entity\n");
12516 * @URL: the URL for the entity to load
12517 * @ID: the System ID for the entity to load
12522 * Returns 0 if the entity is well formed, -1 in case of args problem and
12687 * Also record the size of the entity parsed
12722 * @URL: the URL for the entity to load
12723 * @ID: the System ID for the entity to load
12726 * Parse an external general entity
12727 * An external general parsed entity is well-formed if it matches the
12732 * Returns 0 if the entity is well formed, -1 in case of args problem and
12833 /* propagate namespaces down the entity */
13361 * parse an XML external entity out of context and build a tree.
13408 * parse an XML external entity out of context and build a tree.
13425 * @URL: the entity URL
13426 * @ID: the entity PUBLIC ID
13430 * Create a parser context for an external entity
13490 * @URL: the entity URL
13491 * @ID: the entity PUBLIC ID
13494 * Create a parser context for an external entity
14101 * @ent : A valid entity
14102 * @firstNode : A valid first node for children of entity
14103 * @lastNode : A valid last node of children entity
14105 * Notify of a reference to an entity of type XML_EXTERNAL_GENERAL_PARSED_ENTITY