Lines Matching refs:ENTITY
203 } ENTITY;
269 /* false once a parameter entity reference has been skipped */
295 ENTITY *entity;
336 processInternalEntity(XML_Parser parser, ENTITY *entity,
519 ENTITY *m_declEntity;
709 parsers (i.e. external entity parsers) will inherit it
1172 /* external parameter entity parsers share the DTD structure
1941 XML_L("illegal parameter entity reference"),
1942 XML_L("undefined entity"),
1943 XML_L("recursive entity reference"),
1944 XML_L("asynchronous entity"),
1946 XML_L("reference to binary entity"),
1947 XML_L("reference to external entity in attribute"),
1948 XML_L("XML or text declaration not at start of entity"),
1952 XML_L("error in processing external entity reference"),
1955 XML_L("entity declared in parameter entity"),
1960 XML_L("incomplete markup in parameter entity"),
1968 XML_L("cannot suspend in external parameter entity"),
2310 ENTITY *entity;
2326 entity = (ENTITY *)lookup(parser, &dtd->generalEntities, name, 0);
2329 if yes, check that the entity exists, and that it is internal,
2330 otherwise call the skipped entity or default handler.
2333 if (!entity)
2335 else if (!entity->is_internal)
2338 else if (!entity) {
2345 if (entity->open)
2347 if (entity->notation)
2349 if (entity->textPtr) {
2353 skippedEntityHandler(handlerArg, entity->name, 0);
2358 result = processInternalEntity(parser, entity, XML_FALSE);
2364 entity->open = XML_TRUE;
2366 entity->open = XML_FALSE;
2371 entity->base,
2372 entity->systemId,
2373 entity->publicId))
3177 if (parentParser) { /* we are parsing an external entity */
3572 so we consider the external parameter entity read */
3615 /* found end of entity value - can store it now */
3722 /* found end of entity value - can store it now */
3884 declEntity = (ENTITY *)lookup(parser,
3887 sizeof(ENTITY));
3942 ENTITY *entity = (ENTITY *)lookup(parser,
3945 sizeof(ENTITY));
3946 if (!entity)
3949 entity->base = curBase;
3953 entity->base,
3954 entity->systemId,
3955 entity->publicId))
3987 ENTITY *entity = (ENTITY *)lookup(parser, &dtd->paramEntities,
3989 sizeof(ENTITY));
3990 if (!entity)
3992 entity->base = curBase;
3996 entity->base,
3997 entity->systemId,
3998 entity->publicId))
4201 declEntity = (ENTITY *)lookup(parser,
4204 sizeof(ENTITY));
4277 declEntity = (ENTITY *)lookup(parser, &dtd->generalEntities, name,
4278 sizeof(ENTITY));
4290 entity, then the entity declaration is not considered "internal"
4309 declEntity = (ENTITY *)lookup(parser, &dtd->paramEntities,
4310 name, sizeof(ENTITY));
4322 entity, then the entity declaration is not considered "internal"
4485 ENTITY *entity;
4491 entity = (ENTITY *)lookup(parser, &dtd->paramEntities, name, 0);
4494 if yes, check that the entity exists, and that it is internal,
4495 otherwise call the skipped entity handler
4501 if (!entity)
4503 else if (!entity->is_internal)
4506 else if (!entity) {
4515 if (entity->open)
4517 if (entity->textPtr) {
4521 result = processInternalEntity(parser, entity, betweenDecl);
4529 entity->open = XML_TRUE;
4532 entity->base,
4533 entity->systemId,
4534 entity->publicId)) {
4535 entity->open = XML_FALSE;
4538 entity->open = XML_FALSE;
4795 processInternalEntity(XML_Parser parser, ENTITY *entity,
4812 entity->open = XML_TRUE;
4813 entity->processed = 0;
4816 openEntity->entity = entity;
4821 textStart = (char *)entity->textPtr;
4822 textEnd = (char *)(entity->textPtr + entity->textLen);
4825 if (entity->is_param) {
4837 entity->processed = (int)(next - textStart);
4841 entity->open = XML_FALSE;
4857 ENTITY *entity;
4865 entity = openEntity->entity;
4866 textStart = ((char *)entity->textPtr) + entity->processed;
4867 textEnd = (char *)(entity->textPtr + entity->textLen);
4870 if (entity->is_param) {
4883 entity->processed = (int)(next - (char *)entity->textPtr);
4887 entity->open = XML_FALSE;
4895 if (entity->is_param) {
5000 ENTITY *entity;
5015 entity = (ENTITY *)lookup(parser, &dtd->generalEntities, name, 0);
5018 if yes, check that the entity exists, and that it is internal.
5031 if (!entity)
5033 else if (!entity->is_internal)
5036 else if (!entity) {
5037 /* Cannot report skipped entity here - see comments on
5049 if (entity->open) {
5054 if (entity->notation) {
5059 if (!entity->textPtr) {
5066 const XML_Char *textEnd = entity->textPtr + entity->textLen;
5067 entity->open = XML_TRUE;
5069 (char *)entity->textPtr,
5071 entity->open = XML_FALSE;
5101 since this would indicate an external entity; therefore we
5116 ENTITY *entity;
5124 entity = (ENTITY *)lookup(parser, &dtd->paramEntities, name, 0);
5126 if (!entity) {
5127 /* not a well-formedness error - see XML 1.0: WFC Entity Declared */
5128 /* cannot report skipped entity here - see comments on
5136 if (entity->open) {
5142 if (entity->systemId) {
5145 entity->open = XML_TRUE;
5148 entity->base,
5149 entity->systemId,
5150 entity->publicId)) {
5151 entity->open = XML_FALSE;
5155 entity->open = XML_FALSE;
5163 entity->open = XML_TRUE;
5166 (char *)entity->textPtr,
5167 (char *)(entity->textPtr
5168 + entity->textLen));
5169 entity->open = XML_FALSE;
5177 within markup declarations, e.g entity values in this case. */
5543 ENTITY *e = (ENTITY *)hashTableIterNext(&iter);
5569 ENTITY *e;
5572 e = (ENTITY *)lookup(parser, &dtd->generalEntities, poolStart(&tempPool), 0);
5851 /* Copy the entity tables. */
5895 ENTITY *newE;
5897 const ENTITY *oldE = (ENTITY *)hashTableIterNext(&iter);
5903 newE = (ENTITY *)lookup(oldParser, newTable, name, sizeof(ENTITY));