From 2777da9faad5a5afe927e7afa0b6cf04e0f34671 Mon Sep 17 00:00:00 2001
From: "arseny.kapoulkine"
Date: Fri, 5 Jan 2007 20:05:10 +0000
Subject: Parsing flags refactoring (removed trim flags, eol flags merged
together, escapes flags merged together, removed wnorm_pcdata flag, changed
wnorm_attribute flag (it's space normalization + trimming now), fixed default
flags, changed documentation accordingly
git-svn-id: http://pugixml.googlecode.com/svn/trunk@26 99668b35-9821-0410-8761-19e4c4f06640
---
docs/index.html | 39 ++++++++-------------------------------
1 file changed, 8 insertions(+), 31 deletions(-)
(limited to 'docs')
diff --git a/docs/index.html b/docs/index.html
index 02c8ae9..4066dc4 100644
--- a/docs/index.html
+++ b/docs/index.html
@@ -275,30 +275,13 @@ So, these are the processing flags:
-- If parse_trim_pcdata is on, then the trimming of leading/trailing space-like characters
-is performed for PCDATA content
-
Default value: on
-
In W3C mode: off
-- If parse_trim_attribute is on, then the trimming of leading/trailing space-like characters
-is performed for attribute values (this is non-standard behavior and is here only for compatibility
-reasons (PugXML had this flag).
-
Default value: off
-
In W3C mode: off
-- If parse_escapes_pcdata is on, then the character reference expansion is done for PCDATA
-content (replacing <lt; with <, c; with L, etc.).
-
Default value: on
-
In W3C mode: on
-- If parse_escapes_attribute is on, then the character reference expansion is done for
-attribute values (replacing <lt; with <, c; with L, etc.).
+
- If parse_escapes is on, then the character reference expansion is done for PCDATA content
+and for attribute values (replacing <lt; with <, c; with L, etc.).
Default value: on
In W3C mode: on
-- If parse_wnorm_pcdata is on, then the whitespace normalisation is done for PCDATA content
-(this includes replacing any space-like character by a space character and converting sequences of
-spaces into a single space)
-
Default value: on
-
In W3C mode: off
- If parse_wnorm_attribute is on, then the whitespace normalisation is done for attribute
-values
+values (this includes replacing any space-like character by a space character, converting sequences of
+spaces into a single space and trimming of leading/trailing spaces)
Default value: on
In W3C mode: off
- If parse_wconv_attribute is on, then the whitespace conversion is done for attribute
@@ -306,15 +289,9 @@ values (this is a subset of whitespace normalization, and includes only replacin
with spaces). If parse_wnorm_attribute is on, this flag has no effect.
Default value: on
In W3C mode: on
-- If parse_eol_pcdata is on, then the end-of-line handling is done for PCDATA content (this
-includes converting any pair of 0x0d 0x0a characters to a single 0x0a and converting any standalone
-0x0d to 0x0a).
-
Default value: on
-
In W3C mode: on
-- If parse_eol_attribute is on, then the end-of-line handling is done for attribute values.
-
Default value: on
-
In W3C mode: on
-- If parse_eol_cdata is on, then the end-of-line handling is done for CDATA content.
+
- If parse_eol is on, then the end-of-line handling is done for PCDATA/CDATA content and for
+attribute values (this includes converting any pair of 0x0d 0x0a characters to a single 0x0a and
+converting any standalone 0x0d to 0x0a).
Default value: on
In W3C mode: on
@@ -329,7 +306,7 @@ correctly). This is controlled by parse_match_end_tags, which is on by de
just treat the tag as a closing tag for the node (so that <foo> ... </bar> will
be parsed as <foo> ... </foo>). This is the fastest way, and this is what pugxml
is doing, but it can corrupt your DOM tree. This way is chosen if both parse_check_end_tags and
-parsse_match_end_tags are off.
+parse_match_end_tags are off.
Note, that these 2 flags are mutually exclusive.
--
cgit v1.2.3