mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-07-29 11:41:22 +03:00
fixing compilation and link option when configuring with --without-valid
* debugXML.c relaxng.c valid.c xinclude.c xmllint.c xmlreader.c: fixing compilation and link option when configuring with --without-valid should fix #135309 Daniel
This commit is contained in:
@ -1,3 +1,9 @@
|
|||||||
|
Wed Feb 25 12:50:53 CET 2004 Daniel Veillard <daniel@veillard.com>
|
||||||
|
|
||||||
|
* debugXML.c relaxng.c valid.c xinclude.c xmllint.c xmlreader.c:
|
||||||
|
fixing compilation and link option when configuring with
|
||||||
|
--without-valid should fix #135309
|
||||||
|
|
||||||
Wed Feb 25 11:36:06 CET 2004 Daniel Veillard <daniel@veillard.com>
|
Wed Feb 25 11:36:06 CET 2004 Daniel Veillard <daniel@veillard.com>
|
||||||
|
|
||||||
* catalog.c: fixed the main issues reported by Peter Breitenlohner
|
* catalog.c: fixed the main issues reported by Peter Breitenlohner
|
||||||
|
@ -1955,6 +1955,7 @@ xmlShellSave(xmlShellCtxtPtr ctxt, char *filename,
|
|||||||
}
|
}
|
||||||
#endif /* LIBXML_OUTPUT_ENABLED */
|
#endif /* LIBXML_OUTPUT_ENABLED */
|
||||||
|
|
||||||
|
#ifdef LIBXML_VALID_ENABLED
|
||||||
/**
|
/**
|
||||||
* xmlShellValidate:
|
* xmlShellValidate:
|
||||||
* @ctxt: the shell context
|
* @ctxt: the shell context
|
||||||
@ -1994,6 +1995,7 @@ xmlShellValidate(xmlShellCtxtPtr ctxt, char *dtd,
|
|||||||
}
|
}
|
||||||
return (res);
|
return (res);
|
||||||
}
|
}
|
||||||
|
#endif /* LIBXML_VALID_ENABLED */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* xmlShellDu:
|
* xmlShellDu:
|
||||||
@ -2249,13 +2251,17 @@ xmlShell(xmlDocPtr doc, char *filename, xmlShellReadlineFunc input,
|
|||||||
fprintf(ctxt->output, "\tsave [name] save this document to name or the original name\n");
|
fprintf(ctxt->output, "\tsave [name] save this document to name or the original name\n");
|
||||||
fprintf(ctxt->output, "\twrite [name] write the current node to the filename\n");
|
fprintf(ctxt->output, "\twrite [name] write the current node to the filename\n");
|
||||||
#endif /* LIBXML_OUTPUT_ENABLED */
|
#endif /* LIBXML_OUTPUT_ENABLED */
|
||||||
|
#ifdef LIBXML_VALID_ENABLED
|
||||||
fprintf(ctxt->output, "\tvalidate check the document for errors\n");
|
fprintf(ctxt->output, "\tvalidate check the document for errors\n");
|
||||||
|
#endif /* LIBXML_VALID_ENABLED */
|
||||||
#ifdef LIBXML_SCHEMAS_ENABLED
|
#ifdef LIBXML_SCHEMAS_ENABLED
|
||||||
fprintf(ctxt->output, "\trelaxng rng validate the document agaisnt the Relax-NG schemas\n");
|
fprintf(ctxt->output, "\trelaxng rng validate the document agaisnt the Relax-NG schemas\n");
|
||||||
#endif
|
#endif
|
||||||
fprintf(ctxt->output, "\tgrep string search for a string in the subtree\n");
|
fprintf(ctxt->output, "\tgrep string search for a string in the subtree\n");
|
||||||
|
#ifdef LIBXML_VALID_ENABLED
|
||||||
} else if (!strcmp(command, "validate")) {
|
} else if (!strcmp(command, "validate")) {
|
||||||
xmlShellValidate(ctxt, arg, NULL, NULL);
|
xmlShellValidate(ctxt, arg, NULL, NULL);
|
||||||
|
#endif /* LIBXML_VALID_ENABLED */
|
||||||
} else if (!strcmp(command, "load")) {
|
} else if (!strcmp(command, "load")) {
|
||||||
xmlShellLoad(ctxt, arg, NULL, NULL);
|
xmlShellLoad(ctxt, arg, NULL, NULL);
|
||||||
#ifdef LIBXML_SCHEMAS_ENABLED
|
#ifdef LIBXML_SCHEMAS_ENABLED
|
||||||
|
@ -632,6 +632,57 @@ Class xmlDoc(xmlNode)
|
|||||||
|
|
||||||
# functions from module xpointer
|
# functions from module xpointer
|
||||||
xpointerNewContext()
|
xpointerNewContext()
|
||||||
|
Class xpathContext()
|
||||||
|
# accessors
|
||||||
|
contextDoc()
|
||||||
|
contextNode()
|
||||||
|
contextPosition()
|
||||||
|
contextSize()
|
||||||
|
function()
|
||||||
|
functionURI()
|
||||||
|
setContextDoc()
|
||||||
|
setContextNode()
|
||||||
|
|
||||||
|
# functions from module python
|
||||||
|
registerXPathFunction()
|
||||||
|
|
||||||
|
# functions from module xpath
|
||||||
|
xpathEval()
|
||||||
|
xpathEvalExpression()
|
||||||
|
xpathFreeContext()
|
||||||
|
|
||||||
|
# functions from module xpathInternals
|
||||||
|
xpathNewParserContext()
|
||||||
|
xpathNsLookup()
|
||||||
|
xpathRegisterAllFunctions()
|
||||||
|
xpathRegisterNs()
|
||||||
|
xpathRegisteredFuncsCleanup()
|
||||||
|
xpathRegisteredNsCleanup()
|
||||||
|
xpathRegisteredVariablesCleanup()
|
||||||
|
xpathVariableLookup()
|
||||||
|
xpathVariableLookupNS()
|
||||||
|
|
||||||
|
# functions from module xpointer
|
||||||
|
xpointerEval()
|
||||||
|
|
||||||
|
|
||||||
|
Class xmlAttribute(xmlNode)
|
||||||
|
Class catalog()
|
||||||
|
|
||||||
|
# functions from module catalog
|
||||||
|
add()
|
||||||
|
catalogIsEmpty()
|
||||||
|
convertSGMLCatalog()
|
||||||
|
dump()
|
||||||
|
freeCatalog()
|
||||||
|
remove()
|
||||||
|
resolve()
|
||||||
|
resolvePublic()
|
||||||
|
resolveSystem()
|
||||||
|
resolveURI()
|
||||||
|
|
||||||
|
|
||||||
|
Class xmlElement(xmlNode)
|
||||||
|
|
||||||
|
|
||||||
Class xmlAttr(xmlNode)
|
Class xmlAttr(xmlNode)
|
||||||
@ -650,6 +701,62 @@ Class xmlAttr(xmlNode)
|
|||||||
# functions from module valid
|
# functions from module valid
|
||||||
removeID()
|
removeID()
|
||||||
removeRef()
|
removeRef()
|
||||||
|
|
||||||
|
|
||||||
|
Class xmlTextReader(xmlTextReaderCore)
|
||||||
|
|
||||||
|
# functions from module xmlreader
|
||||||
|
AttributeCount()
|
||||||
|
BaseUri()
|
||||||
|
Close()
|
||||||
|
CurrentDoc()
|
||||||
|
CurrentNode()
|
||||||
|
Depth()
|
||||||
|
Expand()
|
||||||
|
GetAttribute()
|
||||||
|
GetAttributeNo()
|
||||||
|
GetAttributeNs()
|
||||||
|
GetParserProp()
|
||||||
|
GetRemainder()
|
||||||
|
HasAttributes()
|
||||||
|
HasValue()
|
||||||
|
IsDefault()
|
||||||
|
IsEmptyElement()
|
||||||
|
IsValid()
|
||||||
|
LocalName()
|
||||||
|
LookupNamespace()
|
||||||
|
MoveToAttribute()
|
||||||
|
MoveToAttributeNo()
|
||||||
|
MoveToAttributeNs()
|
||||||
|
MoveToElement()
|
||||||
|
MoveToFirstAttribute()
|
||||||
|
MoveToNextAttribute()
|
||||||
|
Name()
|
||||||
|
NamespaceUri()
|
||||||
|
NewDoc()
|
||||||
|
NewFd()
|
||||||
|
NewFile()
|
||||||
|
NewMemory()
|
||||||
|
NewWalker()
|
||||||
|
Next()
|
||||||
|
NextSibling()
|
||||||
|
NodeType()
|
||||||
|
Normalization()
|
||||||
|
Prefix()
|
||||||
|
Preserve()
|
||||||
|
QuoteChar()
|
||||||
|
Read()
|
||||||
|
ReadAttributeValue()
|
||||||
|
ReadInnerXml()
|
||||||
|
ReadOuterXml()
|
||||||
|
ReadState()
|
||||||
|
ReadString()
|
||||||
|
RelaxNGSetSchema()
|
||||||
|
RelaxNGValidate()
|
||||||
|
SetParserProp()
|
||||||
|
String()
|
||||||
|
Value()
|
||||||
|
XmlLang()
|
||||||
Class xmlReg()
|
Class xmlReg()
|
||||||
|
|
||||||
# functions from module xmlregexp
|
# functions from module xmlregexp
|
||||||
@ -657,6 +764,34 @@ Class xmlReg()
|
|||||||
regexpFreeRegexp()
|
regexpFreeRegexp()
|
||||||
regexpIsDeterminist()
|
regexpIsDeterminist()
|
||||||
regexpPrint()
|
regexpPrint()
|
||||||
|
|
||||||
|
|
||||||
|
Class xmlEntity(xmlNode)
|
||||||
|
|
||||||
|
# functions from module parserInternals
|
||||||
|
handleEntity()
|
||||||
|
Class relaxNgSchema()
|
||||||
|
|
||||||
|
# functions from module relaxng
|
||||||
|
relaxNGDump()
|
||||||
|
relaxNGDumpTree()
|
||||||
|
relaxNGFree()
|
||||||
|
relaxNGNewValidCtxt()
|
||||||
|
|
||||||
|
# functions from module xmlreader
|
||||||
|
RelaxNGSetSchema()
|
||||||
|
Class Error()
|
||||||
|
# accessors
|
||||||
|
code()
|
||||||
|
domain()
|
||||||
|
file()
|
||||||
|
level()
|
||||||
|
line()
|
||||||
|
message()
|
||||||
|
|
||||||
|
# functions from module xmlerror
|
||||||
|
copyError()
|
||||||
|
resetError()
|
||||||
Class relaxNgValidCtxt()
|
Class relaxNgValidCtxt()
|
||||||
|
|
||||||
# functions from module relaxng
|
# functions from module relaxng
|
||||||
@ -665,6 +800,73 @@ Class relaxNgValidCtxt()
|
|||||||
relaxNGValidatePopElement()
|
relaxNGValidatePopElement()
|
||||||
relaxNGValidatePushCData()
|
relaxNGValidatePushCData()
|
||||||
relaxNGValidatePushElement()
|
relaxNGValidatePushElement()
|
||||||
|
Class xpathParserContext()
|
||||||
|
# accessors
|
||||||
|
context()
|
||||||
|
|
||||||
|
# functions from module xpathInternals
|
||||||
|
xpathAddValues()
|
||||||
|
xpathBooleanFunction()
|
||||||
|
xpathCeilingFunction()
|
||||||
|
xpathCompareValues()
|
||||||
|
xpathConcatFunction()
|
||||||
|
xpathContainsFunction()
|
||||||
|
xpathCountFunction()
|
||||||
|
xpathDivValues()
|
||||||
|
xpathEqualValues()
|
||||||
|
xpathErr()
|
||||||
|
xpathEvalExpr()
|
||||||
|
xpathFalseFunction()
|
||||||
|
xpathFloorFunction()
|
||||||
|
xpathFreeParserContext()
|
||||||
|
xpathIdFunction()
|
||||||
|
xpathLangFunction()
|
||||||
|
xpathLastFunction()
|
||||||
|
xpathLocalNameFunction()
|
||||||
|
xpathModValues()
|
||||||
|
xpathMultValues()
|
||||||
|
xpathNamespaceURIFunction()
|
||||||
|
xpathNextAncestor()
|
||||||
|
xpathNextAncestorOrSelf()
|
||||||
|
xpathNextAttribute()
|
||||||
|
xpathNextChild()
|
||||||
|
xpathNextDescendant()
|
||||||
|
xpathNextDescendantOrSelf()
|
||||||
|
xpathNextFollowing()
|
||||||
|
xpathNextFollowingSibling()
|
||||||
|
xpathNextNamespace()
|
||||||
|
xpathNextParent()
|
||||||
|
xpathNextPreceding()
|
||||||
|
xpathNextPrecedingSibling()
|
||||||
|
xpathNextSelf()
|
||||||
|
xpathNormalizeFunction()
|
||||||
|
xpathNotEqualValues()
|
||||||
|
xpathNotFunction()
|
||||||
|
xpathNumberFunction()
|
||||||
|
xpathParseNCName()
|
||||||
|
xpathParseName()
|
||||||
|
xpathPopBoolean()
|
||||||
|
xpathPopNumber()
|
||||||
|
xpathPopString()
|
||||||
|
xpathPositionFunction()
|
||||||
|
xpathRoot()
|
||||||
|
xpathRoundFunction()
|
||||||
|
xpathStartsWithFunction()
|
||||||
|
xpathStringFunction()
|
||||||
|
xpathStringLengthFunction()
|
||||||
|
xpathSubValues()
|
||||||
|
xpathSubstringAfterFunction()
|
||||||
|
xpathSubstringBeforeFunction()
|
||||||
|
xpathSubstringFunction()
|
||||||
|
xpathSumFunction()
|
||||||
|
xpathTranslateFunction()
|
||||||
|
xpathTrueFunction()
|
||||||
|
xpathValueFlipSign()
|
||||||
|
xpatherror()
|
||||||
|
|
||||||
|
# functions from module xpointer
|
||||||
|
xpointerEvalRangePredicate()
|
||||||
|
xpointerRangeToFunction()
|
||||||
|
|
||||||
|
|
||||||
Class parserCtxt(parserCtxtCore)
|
Class parserCtxt(parserCtxtCore)
|
||||||
@ -772,92 +974,6 @@ Class xmlDtd(xmlNode)
|
|||||||
dtdElementDesc()
|
dtdElementDesc()
|
||||||
dtdQAttrDesc()
|
dtdQAttrDesc()
|
||||||
dtdQElementDesc()
|
dtdQElementDesc()
|
||||||
Class relaxNgParserCtxt()
|
|
||||||
|
|
||||||
# functions from module relaxng
|
|
||||||
relaxNGFreeParserCtxt()
|
|
||||||
relaxNGParse()
|
|
||||||
relaxParserSetFlag()
|
|
||||||
Class xpathParserContext()
|
|
||||||
# accessors
|
|
||||||
context()
|
|
||||||
|
|
||||||
# functions from module xpathInternals
|
|
||||||
xpathAddValues()
|
|
||||||
xpathBooleanFunction()
|
|
||||||
xpathCeilingFunction()
|
|
||||||
xpathCompareValues()
|
|
||||||
xpathConcatFunction()
|
|
||||||
xpathContainsFunction()
|
|
||||||
xpathCountFunction()
|
|
||||||
xpathDivValues()
|
|
||||||
xpathEqualValues()
|
|
||||||
xpathErr()
|
|
||||||
xpathEvalExpr()
|
|
||||||
xpathFalseFunction()
|
|
||||||
xpathFloorFunction()
|
|
||||||
xpathFreeParserContext()
|
|
||||||
xpathIdFunction()
|
|
||||||
xpathLangFunction()
|
|
||||||
xpathLastFunction()
|
|
||||||
xpathLocalNameFunction()
|
|
||||||
xpathModValues()
|
|
||||||
xpathMultValues()
|
|
||||||
xpathNamespaceURIFunction()
|
|
||||||
xpathNextAncestor()
|
|
||||||
xpathNextAncestorOrSelf()
|
|
||||||
xpathNextAttribute()
|
|
||||||
xpathNextChild()
|
|
||||||
xpathNextDescendant()
|
|
||||||
xpathNextDescendantOrSelf()
|
|
||||||
xpathNextFollowing()
|
|
||||||
xpathNextFollowingSibling()
|
|
||||||
xpathNextNamespace()
|
|
||||||
xpathNextParent()
|
|
||||||
xpathNextPreceding()
|
|
||||||
xpathNextPrecedingSibling()
|
|
||||||
xpathNextSelf()
|
|
||||||
xpathNormalizeFunction()
|
|
||||||
xpathNotEqualValues()
|
|
||||||
xpathNotFunction()
|
|
||||||
xpathNumberFunction()
|
|
||||||
xpathParseNCName()
|
|
||||||
xpathParseName()
|
|
||||||
xpathPopBoolean()
|
|
||||||
xpathPopNumber()
|
|
||||||
xpathPopString()
|
|
||||||
xpathPositionFunction()
|
|
||||||
xpathRoot()
|
|
||||||
xpathRoundFunction()
|
|
||||||
xpathStartsWithFunction()
|
|
||||||
xpathStringFunction()
|
|
||||||
xpathStringLengthFunction()
|
|
||||||
xpathSubValues()
|
|
||||||
xpathSubstringAfterFunction()
|
|
||||||
xpathSubstringBeforeFunction()
|
|
||||||
xpathSubstringFunction()
|
|
||||||
xpathSumFunction()
|
|
||||||
xpathTranslateFunction()
|
|
||||||
xpathTrueFunction()
|
|
||||||
xpathValueFlipSign()
|
|
||||||
xpatherror()
|
|
||||||
|
|
||||||
# functions from module xpointer
|
|
||||||
xpointerEvalRangePredicate()
|
|
||||||
xpointerRangeToFunction()
|
|
||||||
Class catalog()
|
|
||||||
|
|
||||||
# functions from module catalog
|
|
||||||
add()
|
|
||||||
catalogIsEmpty()
|
|
||||||
convertSGMLCatalog()
|
|
||||||
dump()
|
|
||||||
freeCatalog()
|
|
||||||
remove()
|
|
||||||
resolve()
|
|
||||||
resolvePublic()
|
|
||||||
resolveSystem()
|
|
||||||
resolveURI()
|
|
||||||
|
|
||||||
|
|
||||||
Class xmlNs(xmlNode)
|
Class xmlNs(xmlNode)
|
||||||
@ -881,6 +997,42 @@ Class xmlNs(xmlNode)
|
|||||||
|
|
||||||
# functions from module xpathInternals
|
# functions from module xpathInternals
|
||||||
xpathNodeSetFreeNs()
|
xpathNodeSetFreeNs()
|
||||||
|
|
||||||
|
|
||||||
|
Class inputBuffer(ioReadWrapper)
|
||||||
|
|
||||||
|
# functions from module xmlIO
|
||||||
|
freeParserInputBuffer()
|
||||||
|
grow()
|
||||||
|
push()
|
||||||
|
read()
|
||||||
|
|
||||||
|
# functions from module xmlreader
|
||||||
|
newTextReader()
|
||||||
|
Class relaxNgParserCtxt()
|
||||||
|
|
||||||
|
# functions from module relaxng
|
||||||
|
relaxNGFreeParserCtxt()
|
||||||
|
relaxNGParse()
|
||||||
|
relaxParserSetFlag()
|
||||||
|
|
||||||
|
|
||||||
|
Class outputBuffer(ioWriteWrapper)
|
||||||
|
|
||||||
|
# functions from module HTMLtree
|
||||||
|
htmlDocContentDumpFormatOutput()
|
||||||
|
htmlDocContentDumpOutput()
|
||||||
|
htmlNodeDumpFormatOutput()
|
||||||
|
htmlNodeDumpOutput()
|
||||||
|
|
||||||
|
# functions from module tree
|
||||||
|
nodeDumpOutput()
|
||||||
|
saveFileTo()
|
||||||
|
saveFormatFileTo()
|
||||||
|
|
||||||
|
# functions from module xmlIO
|
||||||
|
write()
|
||||||
|
writeString()
|
||||||
Class xmlTextReaderLocator()
|
Class xmlTextReaderLocator()
|
||||||
|
|
||||||
# functions from module xmlreader
|
# functions from module xmlreader
|
||||||
@ -912,155 +1064,3 @@ Class URI()
|
|||||||
parseURIReference()
|
parseURIReference()
|
||||||
printURI()
|
printURI()
|
||||||
saveUri()
|
saveUri()
|
||||||
|
|
||||||
|
|
||||||
Class xmlAttribute(xmlNode)
|
|
||||||
Class xpathContext()
|
|
||||||
# accessors
|
|
||||||
contextDoc()
|
|
||||||
contextNode()
|
|
||||||
contextPosition()
|
|
||||||
contextSize()
|
|
||||||
function()
|
|
||||||
functionURI()
|
|
||||||
setContextDoc()
|
|
||||||
setContextNode()
|
|
||||||
|
|
||||||
# functions from module python
|
|
||||||
registerXPathFunction()
|
|
||||||
|
|
||||||
# functions from module xpath
|
|
||||||
xpathEval()
|
|
||||||
xpathEvalExpression()
|
|
||||||
xpathFreeContext()
|
|
||||||
|
|
||||||
# functions from module xpathInternals
|
|
||||||
xpathNewParserContext()
|
|
||||||
xpathNsLookup()
|
|
||||||
xpathRegisterAllFunctions()
|
|
||||||
xpathRegisterNs()
|
|
||||||
xpathRegisteredFuncsCleanup()
|
|
||||||
xpathRegisteredNsCleanup()
|
|
||||||
xpathRegisteredVariablesCleanup()
|
|
||||||
xpathVariableLookup()
|
|
||||||
xpathVariableLookupNS()
|
|
||||||
|
|
||||||
# functions from module xpointer
|
|
||||||
xpointerEval()
|
|
||||||
|
|
||||||
|
|
||||||
Class xmlElement(xmlNode)
|
|
||||||
|
|
||||||
|
|
||||||
Class xmlTextReader(xmlTextReaderCore)
|
|
||||||
|
|
||||||
# functions from module xmlreader
|
|
||||||
AttributeCount()
|
|
||||||
BaseUri()
|
|
||||||
Close()
|
|
||||||
CurrentDoc()
|
|
||||||
CurrentNode()
|
|
||||||
Depth()
|
|
||||||
Expand()
|
|
||||||
GetAttribute()
|
|
||||||
GetAttributeNo()
|
|
||||||
GetAttributeNs()
|
|
||||||
GetParserProp()
|
|
||||||
GetRemainder()
|
|
||||||
HasAttributes()
|
|
||||||
HasValue()
|
|
||||||
IsDefault()
|
|
||||||
IsEmptyElement()
|
|
||||||
IsValid()
|
|
||||||
LocalName()
|
|
||||||
LookupNamespace()
|
|
||||||
MoveToAttribute()
|
|
||||||
MoveToAttributeNo()
|
|
||||||
MoveToAttributeNs()
|
|
||||||
MoveToElement()
|
|
||||||
MoveToFirstAttribute()
|
|
||||||
MoveToNextAttribute()
|
|
||||||
Name()
|
|
||||||
NamespaceUri()
|
|
||||||
NewDoc()
|
|
||||||
NewFd()
|
|
||||||
NewFile()
|
|
||||||
NewMemory()
|
|
||||||
NewWalker()
|
|
||||||
Next()
|
|
||||||
NextSibling()
|
|
||||||
NodeType()
|
|
||||||
Normalization()
|
|
||||||
Prefix()
|
|
||||||
Preserve()
|
|
||||||
QuoteChar()
|
|
||||||
Read()
|
|
||||||
ReadAttributeValue()
|
|
||||||
ReadInnerXml()
|
|
||||||
ReadOuterXml()
|
|
||||||
ReadState()
|
|
||||||
ReadString()
|
|
||||||
RelaxNGSetSchema()
|
|
||||||
RelaxNGValidate()
|
|
||||||
SetParserProp()
|
|
||||||
String()
|
|
||||||
Value()
|
|
||||||
XmlLang()
|
|
||||||
|
|
||||||
|
|
||||||
Class xmlEntity(xmlNode)
|
|
||||||
|
|
||||||
# functions from module parserInternals
|
|
||||||
handleEntity()
|
|
||||||
Class Error()
|
|
||||||
# accessors
|
|
||||||
code()
|
|
||||||
domain()
|
|
||||||
file()
|
|
||||||
level()
|
|
||||||
line()
|
|
||||||
message()
|
|
||||||
|
|
||||||
# functions from module xmlerror
|
|
||||||
copyError()
|
|
||||||
resetError()
|
|
||||||
Class relaxNgSchema()
|
|
||||||
|
|
||||||
# functions from module relaxng
|
|
||||||
relaxNGDump()
|
|
||||||
relaxNGDumpTree()
|
|
||||||
relaxNGFree()
|
|
||||||
relaxNGNewValidCtxt()
|
|
||||||
|
|
||||||
# functions from module xmlreader
|
|
||||||
RelaxNGSetSchema()
|
|
||||||
|
|
||||||
|
|
||||||
Class inputBuffer(ioReadWrapper)
|
|
||||||
|
|
||||||
# functions from module xmlIO
|
|
||||||
freeParserInputBuffer()
|
|
||||||
grow()
|
|
||||||
push()
|
|
||||||
read()
|
|
||||||
|
|
||||||
# functions from module xmlreader
|
|
||||||
newTextReader()
|
|
||||||
|
|
||||||
|
|
||||||
Class outputBuffer(ioWriteWrapper)
|
|
||||||
|
|
||||||
# functions from module HTMLtree
|
|
||||||
htmlDocContentDumpFormatOutput()
|
|
||||||
htmlDocContentDumpOutput()
|
|
||||||
htmlNodeDumpFormatOutput()
|
|
||||||
htmlNodeDumpOutput()
|
|
||||||
|
|
||||||
# functions from module tree
|
|
||||||
nodeDumpOutput()
|
|
||||||
saveFileTo()
|
|
||||||
saveFormatFileTo()
|
|
||||||
|
|
||||||
# functions from module xmlIO
|
|
||||||
write()
|
|
||||||
writeString()
|
|
||||||
|
@ -10464,6 +10464,7 @@ xmlRelaxNGValidateDocument(xmlRelaxNGValidCtxtPtr ctxt, xmlDocPtr doc)
|
|||||||
xmlRelaxNGDumpValidError(ctxt);
|
xmlRelaxNGDumpValidError(ctxt);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
#ifdef LIBXML_VALID_ENABLED
|
||||||
if (ctxt->idref == 1) {
|
if (ctxt->idref == 1) {
|
||||||
xmlValidCtxt vctxt;
|
xmlValidCtxt vctxt;
|
||||||
|
|
||||||
@ -10476,6 +10477,7 @@ xmlRelaxNGValidateDocument(xmlRelaxNGValidCtxtPtr ctxt, xmlDocPtr doc)
|
|||||||
if (xmlValidateDocumentFinal(&vctxt, doc) != 1)
|
if (xmlValidateDocumentFinal(&vctxt, doc) != 1)
|
||||||
ret = -1;
|
ret = -1;
|
||||||
}
|
}
|
||||||
|
#endif /* LIBXML_VALID_ENABLED */
|
||||||
if ((ret == 0) && (ctxt->errNo != XML_RELAXNG_OK))
|
if ((ret == 0) && (ctxt->errNo != XML_RELAXNG_OK))
|
||||||
ret = -1;
|
ret = -1;
|
||||||
|
|
||||||
|
75
valid.c
75
valid.c
@ -105,6 +105,42 @@ xmlErrValid(xmlValidCtxtPtr ctxt, xmlParserErrors error,
|
|||||||
msg);
|
msg);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if defined(LIBXML_VALID_ENABLED) || defined(LIBXML_SCHEMAS_ENABLED)
|
||||||
|
/**
|
||||||
|
* xmlErrValidNode:
|
||||||
|
* @ctxt: an XML validation parser context
|
||||||
|
* @node: the node raising the error
|
||||||
|
* @error: the error number
|
||||||
|
* @str1: extra informations
|
||||||
|
* @str2: extra informations
|
||||||
|
* @str3: extra informations
|
||||||
|
*
|
||||||
|
* Handle a validation error, provide contextual informations
|
||||||
|
*/
|
||||||
|
static void
|
||||||
|
xmlErrValidNode(xmlValidCtxtPtr ctxt,
|
||||||
|
xmlNodePtr node, xmlParserErrors error,
|
||||||
|
const char *msg, const xmlChar * str1,
|
||||||
|
const xmlChar * str2, const xmlChar * str3)
|
||||||
|
{
|
||||||
|
xmlStructuredErrorFunc schannel = NULL;
|
||||||
|
xmlGenericErrorFunc channel = NULL;
|
||||||
|
xmlParserCtxtPtr pctxt = NULL;
|
||||||
|
void *data = NULL;
|
||||||
|
|
||||||
|
if (ctxt != NULL) {
|
||||||
|
channel = ctxt->error;
|
||||||
|
data = ctxt->userData;
|
||||||
|
pctxt = ctxt->userData;
|
||||||
|
}
|
||||||
|
__xmlRaiseError(schannel, channel, data, pctxt, node, XML_FROM_VALID, error,
|
||||||
|
XML_ERR_ERROR, NULL, 0,
|
||||||
|
(const char *) str1,
|
||||||
|
(const char *) str1,
|
||||||
|
(const char *) str3, 0, 0, msg, str1, str2, str3);
|
||||||
|
}
|
||||||
|
#endif /* LIBXML_VALID_ENABLED or LIBXML_SCHEMAS_ENABLED */
|
||||||
|
|
||||||
#ifdef LIBXML_VALID_ENABLED
|
#ifdef LIBXML_VALID_ENABLED
|
||||||
/**
|
/**
|
||||||
* xmlErrValidNodeNr:
|
* xmlErrValidNodeNr:
|
||||||
@ -139,39 +175,7 @@ xmlErrValidNodeNr(xmlValidCtxtPtr ctxt,
|
|||||||
(const char *) str3,
|
(const char *) str3,
|
||||||
NULL, int2, 0, msg, str1, int2, str3);
|
NULL, int2, 0, msg, str1, int2, str3);
|
||||||
}
|
}
|
||||||
/**
|
|
||||||
* xmlErrValidNode:
|
|
||||||
* @ctxt: an XML validation parser context
|
|
||||||
* @node: the node raising the error
|
|
||||||
* @error: the error number
|
|
||||||
* @str1: extra informations
|
|
||||||
* @str2: extra informations
|
|
||||||
* @str3: extra informations
|
|
||||||
*
|
|
||||||
* Handle a validation error, provide contextual informations
|
|
||||||
*/
|
|
||||||
static void
|
|
||||||
xmlErrValidNode(xmlValidCtxtPtr ctxt,
|
|
||||||
xmlNodePtr node, xmlParserErrors error,
|
|
||||||
const char *msg, const xmlChar * str1,
|
|
||||||
const xmlChar * str2, const xmlChar * str3)
|
|
||||||
{
|
|
||||||
xmlStructuredErrorFunc schannel = NULL;
|
|
||||||
xmlGenericErrorFunc channel = NULL;
|
|
||||||
xmlParserCtxtPtr pctxt = NULL;
|
|
||||||
void *data = NULL;
|
|
||||||
|
|
||||||
if (ctxt != NULL) {
|
|
||||||
channel = ctxt->error;
|
|
||||||
data = ctxt->userData;
|
|
||||||
pctxt = ctxt->userData;
|
|
||||||
}
|
|
||||||
__xmlRaiseError(schannel, channel, data, pctxt, node, XML_FROM_VALID, error,
|
|
||||||
XML_ERR_ERROR, NULL, 0,
|
|
||||||
(const char *) str1,
|
|
||||||
(const char *) str1,
|
|
||||||
(const char *) str3, 0, 0, msg, str1, str2, str3);
|
|
||||||
}
|
|
||||||
/**
|
/**
|
||||||
* xmlErrValidWarning:
|
* xmlErrValidWarning:
|
||||||
* @ctxt: an XML validation parser context
|
* @ctxt: an XML validation parser context
|
||||||
@ -2722,7 +2726,8 @@ xmlWalkRemoveRef(const void *data, const void *user)
|
|||||||
* Do nothing, return 0. Used to create unordered lists.
|
* Do nothing, return 0. Used to create unordered lists.
|
||||||
*/
|
*/
|
||||||
static int
|
static int
|
||||||
xmlDummyCompare(const void *data0, const void *data1)
|
xmlDummyCompare(const void *data0 ATTRIBUTE_UNUSED,
|
||||||
|
const void *data1 ATTRIBUTE_UNUSED)
|
||||||
{
|
{
|
||||||
return (0);
|
return (0);
|
||||||
}
|
}
|
||||||
@ -3150,7 +3155,7 @@ xmlGetDtdNotationDesc(xmlDtdPtr dtd, const xmlChar *name) {
|
|||||||
return(xmlHashLookup(table, name));
|
return(xmlHashLookup(table, name));
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef LIBXML_VALID_ENABLED
|
#if defined(LIBXML_VALID_ENABLED) || defined(LIBXML_SCHEMAS_ENABLED)
|
||||||
/**
|
/**
|
||||||
* xmlValidateNotationUse:
|
* xmlValidateNotationUse:
|
||||||
* @ctxt: the validation context
|
* @ctxt: the validation context
|
||||||
@ -3181,7 +3186,7 @@ xmlValidateNotationUse(xmlValidCtxtPtr ctxt, xmlDocPtr doc,
|
|||||||
}
|
}
|
||||||
return(1);
|
return(1);
|
||||||
}
|
}
|
||||||
#endif /* LIBXML_VALID_ENABLED */
|
#endif /* LIBXML_VALID_ENABLED or LIBXML_SCHEMAS_ENABLED */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* xmlIsMixedElement:
|
* xmlIsMixedElement:
|
||||||
|
@ -132,6 +132,7 @@ xmlXIncludeErr(xmlXIncludeCtxtPtr ctxt, xmlNodePtr node, int error,
|
|||||||
msg, (const char *) extra);
|
msg, (const char *) extra);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if 0
|
||||||
/**
|
/**
|
||||||
* xmlXIncludeWarn:
|
* xmlXIncludeWarn:
|
||||||
* @ctxt: the XInclude context
|
* @ctxt: the XInclude context
|
||||||
@ -150,6 +151,7 @@ xmlXIncludeWarn(xmlXIncludeCtxtPtr ctxt, xmlNodePtr node, int error,
|
|||||||
(const char *) extra, NULL, NULL, 0, 0,
|
(const char *) extra, NULL, NULL, 0, 0,
|
||||||
msg, (const char *) extra);
|
msg, (const char *) extra);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* xmlXIncludeGetProp:
|
* xmlXIncludeGetProp:
|
||||||
|
10
xmllint.c
10
xmllint.c
@ -704,20 +704,16 @@ static void streamFile(char *filename) {
|
|||||||
}
|
}
|
||||||
if ((timing) && (!repeat)) {
|
if ((timing) && (!repeat)) {
|
||||||
#ifdef LIBXML_SCHEMAS_ENABLED
|
#ifdef LIBXML_SCHEMAS_ENABLED
|
||||||
if ((valid) || (relaxng != NULL))
|
if (relaxng != NULL)
|
||||||
endTimer("Parsing and validating");
|
endTimer("Parsing and validating");
|
||||||
else
|
else
|
||||||
endTimer("Parsing");
|
#endif
|
||||||
#else
|
|
||||||
#ifdef LIBXML_VALID_ENABLED
|
#ifdef LIBXML_VALID_ENABLED
|
||||||
if (valid)
|
if (valid)
|
||||||
endTimer("Parsing and validating");
|
endTimer("Parsing and validating");
|
||||||
else
|
else
|
||||||
endTimer("Parsing");
|
|
||||||
#else
|
|
||||||
endTimer("Parsing");
|
|
||||||
#endif /* LIBXML_VALID_ENABLED */
|
|
||||||
#endif
|
#endif
|
||||||
|
endTimer("Parsing");
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef LIBXML_VALID_ENABLED
|
#ifdef LIBXML_VALID_ENABLED
|
||||||
|
21
xmlreader.c
21
xmlreader.c
@ -877,6 +877,7 @@ static void
|
|||||||
xmlTextReaderValidatePush(xmlTextReaderPtr reader ATTRIBUTE_UNUSED) {
|
xmlTextReaderValidatePush(xmlTextReaderPtr reader ATTRIBUTE_UNUSED) {
|
||||||
xmlNodePtr node = reader->node;
|
xmlNodePtr node = reader->node;
|
||||||
|
|
||||||
|
#ifdef LIBXML_VALID_ENABLED
|
||||||
if ((reader->validate == XML_TEXTREADER_VALIDATE_DTD) &&
|
if ((reader->validate == XML_TEXTREADER_VALIDATE_DTD) &&
|
||||||
(reader->ctxt != NULL) && (reader->ctxt->validate == 1)) {
|
(reader->ctxt != NULL) && (reader->ctxt->validate == 1)) {
|
||||||
if ((node->ns == NULL) || (node->ns->prefix == NULL)) {
|
if ((node->ns == NULL) || (node->ns->prefix == NULL)) {
|
||||||
@ -894,8 +895,10 @@ xmlTextReaderValidatePush(xmlTextReaderPtr reader ATTRIBUTE_UNUSED) {
|
|||||||
if (qname != NULL)
|
if (qname != NULL)
|
||||||
xmlFree(qname);
|
xmlFree(qname);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
#endif /* LIBXML_VALID_ENABLED */
|
||||||
#ifdef LIBXML_SCHEMAS_ENABLED
|
#ifdef LIBXML_SCHEMAS_ENABLED
|
||||||
} else if ((reader->validate == XML_TEXTREADER_VALIDATE_RNG) &&
|
if ((reader->validate == XML_TEXTREADER_VALIDATE_RNG) &&
|
||||||
(reader->rngValidCtxt != NULL)) {
|
(reader->rngValidCtxt != NULL)) {
|
||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
@ -920,8 +923,8 @@ printf("Expand failed !\n");
|
|||||||
}
|
}
|
||||||
if (ret != 1)
|
if (ret != 1)
|
||||||
reader->rngValidErrors++;
|
reader->rngValidErrors++;
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -935,12 +938,15 @@ printf("Expand failed !\n");
|
|||||||
static void
|
static void
|
||||||
xmlTextReaderValidateCData(xmlTextReaderPtr reader,
|
xmlTextReaderValidateCData(xmlTextReaderPtr reader,
|
||||||
const xmlChar *data, int len) {
|
const xmlChar *data, int len) {
|
||||||
|
#ifdef LIBXML_VALID_ENABLED
|
||||||
if ((reader->validate == XML_TEXTREADER_VALIDATE_DTD) &&
|
if ((reader->validate == XML_TEXTREADER_VALIDATE_DTD) &&
|
||||||
(reader->ctxt != NULL) && (reader->ctxt->validate == 1)) {
|
(reader->ctxt != NULL) && (reader->ctxt->validate == 1)) {
|
||||||
reader->ctxt->valid &= xmlValidatePushCData(&reader->ctxt->vctxt,
|
reader->ctxt->valid &= xmlValidatePushCData(&reader->ctxt->vctxt,
|
||||||
data, len);
|
data, len);
|
||||||
|
}
|
||||||
|
#endif /* LIBXML_VALID_ENABLED */
|
||||||
#ifdef LIBXML_SCHEMAS_ENABLED
|
#ifdef LIBXML_SCHEMAS_ENABLED
|
||||||
} else if ((reader->validate == XML_TEXTREADER_VALIDATE_RNG) &&
|
if ((reader->validate == XML_TEXTREADER_VALIDATE_RNG) &&
|
||||||
(reader->rngValidCtxt != NULL)) {
|
(reader->rngValidCtxt != NULL)) {
|
||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
@ -948,8 +954,8 @@ xmlTextReaderValidateCData(xmlTextReaderPtr reader,
|
|||||||
ret = xmlRelaxNGValidatePushCData(reader->rngValidCtxt, data, len);
|
ret = xmlRelaxNGValidatePushCData(reader->rngValidCtxt, data, len);
|
||||||
if (ret != 1)
|
if (ret != 1)
|
||||||
reader->rngValidErrors++;
|
reader->rngValidErrors++;
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -962,6 +968,7 @@ static void
|
|||||||
xmlTextReaderValidatePop(xmlTextReaderPtr reader) {
|
xmlTextReaderValidatePop(xmlTextReaderPtr reader) {
|
||||||
xmlNodePtr node = reader->node;
|
xmlNodePtr node = reader->node;
|
||||||
|
|
||||||
|
#ifdef LIBXML_VALID_ENABLED
|
||||||
if ((reader->validate == XML_TEXTREADER_VALIDATE_DTD) &&
|
if ((reader->validate == XML_TEXTREADER_VALIDATE_DTD) &&
|
||||||
(reader->ctxt != NULL) && (reader->ctxt->validate == 1)) {
|
(reader->ctxt != NULL) && (reader->ctxt->validate == 1)) {
|
||||||
if ((node->ns == NULL) || (node->ns->prefix == NULL)) {
|
if ((node->ns == NULL) || (node->ns->prefix == NULL)) {
|
||||||
@ -979,8 +986,10 @@ xmlTextReaderValidatePop(xmlTextReaderPtr reader) {
|
|||||||
if (qname != NULL)
|
if (qname != NULL)
|
||||||
xmlFree(qname);
|
xmlFree(qname);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
#endif /* LIBXML_VALID_ENABLED */
|
||||||
#ifdef LIBXML_SCHEMAS_ENABLED
|
#ifdef LIBXML_SCHEMAS_ENABLED
|
||||||
} else if ((reader->validate == XML_TEXTREADER_VALIDATE_RNG) &&
|
if ((reader->validate == XML_TEXTREADER_VALIDATE_RNG) &&
|
||||||
(reader->rngValidCtxt != NULL)) {
|
(reader->rngValidCtxt != NULL)) {
|
||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
@ -994,8 +1003,8 @@ xmlTextReaderValidatePop(xmlTextReaderPtr reader) {
|
|||||||
node);
|
node);
|
||||||
if (ret != 1)
|
if (ret != 1)
|
||||||
reader->rngValidErrors++;
|
reader->rngValidErrors++;
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Reference in New Issue
Block a user