| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
| |
git-svn-id: http://svn.freepascal.org/svn/fpc/trunk@17184 3ad0048d-3df7-0310-abae-a5850022a9f2
|
| |
|
|
| |
git-svn-id: http://svn.freepascal.org/svn/fpc/trunk@17003 3ad0048d-3df7-0310-abae-a5850022a9f2
|
| |
|
|
|
|
|
|
|
| |
- XMLVersion property has been made available in TDOMDocument, removed inheritance check.
* Improved parsing the content model a bit
* Cleanup comments
git-svn-id: http://svn.freepascal.org/svn/fpc/trunk@16987 3ad0048d-3df7-0310-abae-a5850022a9f2
|
| |
|
|
|
|
| |
is now maintained only in validation mode.
git-svn-id: http://svn.freepascal.org/svn/fpc/trunk@16973 3ad0048d-3df7-0310-abae-a5850022a9f2
|
| |
|
|
|
|
| |
But this time it is simply a local variable.
git-svn-id: http://svn.freepascal.org/svn/fpc/trunk@16962 3ad0048d-3df7-0310-abae-a5850022a9f2
|
| |
|
|
|
|
| |
* Fixed reported locations for (hopefully) all namespace-related errors.
git-svn-id: http://svn.freepascal.org/svn/fpc/trunk@16959 3ad0048d-3df7-0310-abae-a5850022a9f2
|
| |
|
|
| |
git-svn-id: http://svn.freepascal.org/svn/fpc/trunk@16946 3ad0048d-3df7-0310-abae-a5850022a9f2
|
| |
|
|
|
|
| |
nodes.
git-svn-id: http://svn.freepascal.org/svn/fpc/trunk@16942 3ad0048d-3df7-0310-abae-a5850022a9f2
|
| |
|
|
|
|
| |
* Renamed TXMLCharSource.DTDSubsetType to Kind and changed its definition to reflect its purpose better.
git-svn-id: http://svn.freepascal.org/svn/fpc/trunk@16932 3ad0048d-3df7-0310-abae-a5850022a9f2
|
| |
|
|
|
|
| |
model (classes TDTDModel, TEntityDecl, TNotationDecl), which is referenced by one or more TDOMDocumentType nodes.
git-svn-id: http://svn.freepascal.org/svn/fpc/trunk@16914 3ad0048d-3df7-0310-abae-a5850022a9f2
|
| |
|
|
|
|
|
|
| |
declaration attributes into fields of FSource, and copy them to DOM objects later.
* Small improvement to CheckMaxChars.
git-svn-id: http://svn.freepascal.org/svn/fpc/trunk@16913 3ad0048d-3df7-0310-abae-a5850022a9f2
|
| |
|
|
|
|
| |
requirements.
git-svn-id: http://svn.freepascal.org/svn/fpc/trunk@16901 3ad0048d-3df7-0310-abae-a5850022a9f2
|
| |
|
|
|
|
| |
result assigned, Mantis #18589
git-svn-id: http://svn.freepascal.org/svn/fpc/trunk@16803 3ad0048d-3df7-0310-abae-a5850022a9f2
|
| |
|
|
|
|
| |
a malformed xml contained a null character within whitespace (to be exact, within parts processed by SkipS procedure). Great thanks to alexs75 for finding and supplying such xml file :)
git-svn-id: http://svn.freepascal.org/svn/fpc/trunk@16766 3ad0048d-3df7-0310-abae-a5850022a9f2
|
| |
|
|
| |
git-svn-id: http://svn.freepascal.org/svn/fpc/trunk@16443 3ad0048d-3df7-0310-abae-a5850022a9f2
|
| |
|
|
| |
git-svn-id: http://svn.freepascal.org/svn/fpc/trunk@16307 3ad0048d-3df7-0310-abae-a5850022a9f2
|
| |
|
|
|
|
| |
FNameTable.
git-svn-id: http://svn.freepascal.org/svn/fpc/trunk@16270 3ad0048d-3df7-0310-abae-a5850022a9f2
|
| |
|
|
|
|
|
|
| |
validation without DOM.
* also don't allocate TForwardRef records for backward references, saves some ticks and bytes.
git-svn-id: http://svn.freepascal.org/svn/fpc/trunk@16264 3ad0048d-3df7-0310-abae-a5850022a9f2
|
| |
|
|
|
|
| |
time (the former is used only while parsing root, the latter only while parsing DTD), simplify things a bit by replacing them with a single FForwardRefs.
git-svn-id: http://svn.freepascal.org/svn/fpc/trunk@16259 3ad0048d-3df7-0310-abae-a5850022a9f2
|
| |
|
|
|
|
| |
Options.CanonicalForm=True, report all attributes as specified and drop superfluous namespace declaration attributes. Fixes level3/ls/canonicalform10 and level3/ls/canonicalform11.
git-svn-id: http://svn.freepascal.org/svn/fpc/trunk@16253 3ad0048d-3df7-0310-abae-a5850022a9f2
|
| |
|
|
|
|
| |
assigning doc.DocumentType only after DTD has been completely parsed prevented inner reader from parsing 2nd+ level entity references in default attribute values. This went unnoticed because of no positive tests, and was detected only by examining negative test diagnostic, namely for not-wf-sa-079 and not-wf-sa-080.
git-svn-id: http://svn.freepascal.org/svn/fpc/trunk@16248 3ad0048d-3df7-0310-abae-a5850022a9f2
|
| |
|
|
|
|
| |
namespace-related errors reported at correct locations.
git-svn-id: http://svn.freepascal.org/svn/fpc/trunk@16234 3ad0048d-3df7-0310-abae-a5850022a9f2
|
| |
|
|
|
|
|
|
|
|
|
|
| |
structures (third part)
* Namespace handling rewritten to fit into XMLReader's own data structures.
* Remaining TDOMElementDef's replaced by TElementDecl.
* Removed DoAttrText(), it has become obsolete.
* Create objects that are needed for namespace processing only if actually doing namespace processing, reduces memory requirements.
* Improved TAttributeDef construction.
git-svn-id: http://svn.freepascal.org/svn/fpc/trunk@16230 3ad0048d-3df7-0310-abae-a5850022a9f2
|
| |
|
|
|
|
|
|
|
|
| |
* TXMLNodeType, TNodeData and TAttrDataType moved to xmlutils.pp, so they can be shared between dom, xmlread and dtdmodel.
* TContentParticle class moved from xmlread.pp to dtdmodel.pp.
* dom.pp and xmlread.pp switched to DOM-independent representation of DTD element declarations and attribute defaults.
git-svn-id: http://svn.freepascal.org/svn/fpc/trunk@16221 3ad0048d-3df7-0310-abae-a5850022a9f2
|
| |
|
|
|
|
|
|
|
|
| |
* TContentParticle only stores and compares a pointer to an element definition, a particular type of that definition doesn't matter - so change it to TObject.
* In case of mixed content model, assign Type and Quantity to the root content particle, and process it the same way as element-only models.
* While parsing, store entities in THashTable instead of TDOMNamedNodeMap.
* Assign Prefix to element and attribute NodeData.
git-svn-id: http://svn.freepascal.org/svn/fpc/trunk@16208 3ad0048d-3df7-0310-abae-a5850022a9f2
|
| |
|
|
|
|
|
|
|
|
|
| |
structures (second part)
* ExpectAttValue() now builds both plain string value and first-level node chain.
* Normalize() procedure moved to xmlutils.pp and made publicly available as BufNormalize.
* ParseLiteral() cleaned of attribute-specific code; at this point it is clear it won't be used for parsing attributes.
git-svn-id: http://svn.freepascal.org/svn/fpc/trunk@16186 3ad0048d-3df7-0310-abae-a5850022a9f2
|
| |
|
|
|
|
| |
structures (first part)
git-svn-id: http://svn.freepascal.org/svn/fpc/trunk@16184 3ad0048d-3df7-0310-abae-a5850022a9f2
|
| |
|
|
|
|
| |
should ignore comments in DTD, but not between DTD and root element. Fixed.
git-svn-id: http://svn.freepascal.org/svn/fpc/trunk@16183 3ad0048d-3df7-0310-abae-a5850022a9f2
|
| |
|
|
| |
git-svn-id: http://svn.freepascal.org/svn/fpc/trunk@16175 3ad0048d-3df7-0310-abae-a5850022a9f2
|
| |
|
|
|
|
|
| |
* correct handling of comments, PIs and (partially) DocumentType
git-svn-id: http://svn.freepascal.org/svn/fpc/trunk@16172 3ad0048d-3df7-0310-abae-a5850022a9f2
|
| |
|
|
|
|
|
|
|
| |
+ state transitions needed to report start/end element events correctly
+ procedures for maintaining attribute data
* excluded FCursor from attribute value parsing
git-svn-id: http://svn.freepascal.org/svn/fpc/trunk@16161 3ad0048d-3df7-0310-abae-a5850022a9f2
|
| |
|
|
| |
git-svn-id: http://svn.freepascal.org/svn/fpc/trunk@16094 3ad0048d-3df7-0310-abae-a5850022a9f2
|
| |
|
|
|
|
| |
.net world.
git-svn-id: http://svn.freepascal.org/svn/fpc/trunk@16079 3ad0048d-3df7-0310-abae-a5850022a9f2
|
| |
|
|
|
|
| |
'BaseUri' and 'Value', so it becomes possible to add properties with these names to TXMLReader without duplicate identifier errors.
git-svn-id: http://svn.freepascal.org/svn/fpc/trunk@16078 3ad0048d-3df7-0310-abae-a5850022a9f2
|
| |
|
|
|
|
| |
created node won't leak if initial node has no parent .
git-svn-id: http://svn.freepascal.org/svn/fpc/trunk@16072 3ad0048d-3df7-0310-abae-a5850022a9f2
|
| |
|
|
|
|
| |
code in ParseComment() and ParsePI().
git-svn-id: http://svn.freepascal.org/svn/fpc/trunk@16070 3ad0048d-3df7-0310-abae-a5850022a9f2
|
| |
|
|
|
|
| |
TAttributeMap.
git-svn-id: http://svn.freepascal.org/svn/fpc/trunk@16066 3ad0048d-3df7-0310-abae-a5850022a9f2
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
later: the same as i386/darwin, except
a) uses the non-fragile Objective-C ABI/runtime
b) does not require stubs for direct calls/jumps (not required for
i386/darwin under 10.6 and later either, but still generated
there for backwards compatibility)
c) only the same packages are enabled as for ARM/Darwin
d) MacOSAll is compiled specifically for the iPhoneSimulator SDK
This target also defines the symbol "darwin" apart from the target
name "iphonesim" for source code compatibility reasons.
git-svn-id: http://svn.freepascal.org/svn/fpc/trunk@16065 3ad0048d-3df7-0310-abae-a5850022a9f2
|
| |
|
|
|
|
| |
TAttributeMap.
git-svn-id: http://svn.freepascal.org/svn/fpc/trunk@16060 3ad0048d-3df7-0310-abae-a5850022a9f2
|
| |
|
|
|
|
|
|
| |
- remove duplicated code from constructor
- use CreateXXXBuf to create DOM nodes, eliminates temporary string vars.
git-svn-id: http://svn.freepascal.org/svn/fpc/trunk@16049 3ad0048d-3df7-0310-abae-a5850022a9f2
|
| |
|
|
|
|
| |
it doesn't seem to change test suite behavior).
git-svn-id: http://svn.freepascal.org/svn/fpc/trunk@16048 3ad0048d-3df7-0310-abae-a5850022a9f2
|
| |
|
|
|
|
|
|
| |
* Parse entities by creating another instance of TXMLReader. This is much more straightforward than saving/restoring context of the existing reader.
* Fixed version setting logic so that ReadXMLFragment procedures are now suitable to read entities:
accept streams conforming to extParsedEnt [78], correctly read fragments into documents having version=1.1.
git-svn-id: http://svn.freepascal.org/svn/fpc/trunk@16046 3ad0048d-3df7-0310-abae-a5850022a9f2
|
| |
|
|
|
|
| |
FParentNode. This reduces memory requirements.
git-svn-id: http://svn.freepascal.org/svn/fpc/trunk@16014 3ad0048d-3df7-0310-abae-a5850022a9f2
|
| |
|
|
|
|
|
|
|
|
| |
* r15443 changed the node class with biggest instance size from TDOMAttr to TDOMEntity. Changed that in TDOMDocument constructor, too. Otherwise nodes created with TDOMEntity.CloneNode will leak (they cannot be inserted into tree).
* Do not restore default attributes during document destruction.
* Also added a general check that raises exception if someone tries to allocate from node pool during destruction.
* Fixed replaceChild() method: it was deleting node if that node was replaced by itself.
+ Test for replaceChild.
git-svn-id: http://svn.freepascal.org/svn/fpc/trunk@16010 3ad0048d-3df7-0310-abae-a5850022a9f2
|
| |
|
|
|
|
| |
checking other fields.
git-svn-id: http://svn.freepascal.org/svn/fpc/trunk@15984 3ad0048d-3df7-0310-abae-a5850022a9f2
|
| |
|
|
|
|
|
|
|
|
| |
* Renamed ParseElement to ParseStartTag to reflect its actual functionality
* Changed ParseQuantity into function returning a enumeration type
* Simplified TXMLDecodingSource.NewLine
* Changed the main loop (ParseContent) so that multiple calls to DoText() are replaced by a single call.
- Removed "if FCDSectinsAsText" branch in DoCDSect. It is obsolete since this case is handled in ParseContent.
git-svn-id: http://svn.freepascal.org/svn/fpc/trunk@15975 3ad0048d-3df7-0310-abae-a5850022a9f2
|
| |
|
|
|
|
| |
non-normalized to #10 if it was the last character in input stream.
git-svn-id: http://svn.freepascal.org/svn/fpc/trunk@15974 3ad0048d-3df7-0310-abae-a5850022a9f2
|
| |
|
|
|
|
| |
always writes to a TStream (or its descendant), and for text files we use a simple TStream-compatible wrapper.
git-svn-id: http://svn.freepascal.org/svn/fpc/trunk@15755 3ad0048d-3df7-0310-abae-a5850022a9f2
|
| |
|
|
|
|
|
|
|
|
| |
* Applied counterpart of sax_html.pp r15564, eliminating redundant wide-to-ansi conversions;
* AStart parameter of IgnorableWhitespace event should be zero, not 1;
* XML is case-sensitive, removed calls to lowercase();
* Accumulate token characters in FRawTokenText, then convert it all at once to SAXString. Without it, handling multi-byte encodings like UTF-8 was impossible, because it was converting by individual bytes which always resulted in errors. Provides a partial fix for Mantis #16732. Also provides a single location to insert a proper decoding procedure.
git-svn-id: http://svn.freepascal.org/svn/fpc/trunk@15738 3ad0048d-3df7-0310-abae-a5850022a9f2
|
| |
|
|
|
|
| |
by other code.
git-svn-id: http://svn.freepascal.org/svn/fpc/trunk@15737 3ad0048d-3df7-0310-abae-a5850022a9f2
|