[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [draft-freed-sieve-in-xml-02] Emphasis Whitespace Preservation




> Issue
> -----
> Implicit whitespace preservation.

> Original
> --------
> In "4. XML Representation of Sieve"

>   String, number, and tag arguments are represented as str, num, and
>   tag elements respectively.  The actual string, number, or tag
>   identifier appears as text inside the element.  None of these
>   elements have any defined attributes.  Several examples of arguments
>   have already appeared in the preceding control, action and test
>   examples.

> Proposal
> --------
>   String, number, and tag arguments are represented as str, num, and
>   tag elements respectively.  The actual string, number, or tag
>   identifier appears as text inside the element.  None of these
>   elements have any defined attributes.  Several examples of arguments
>   have already appeared in the preceding control, action and test
>   examples. Any whitespace in the str body content MUST be preserved
>   by the processor.


> Rationale
> ---------
> This isn't a major issue but based on experience with HTML, developers
> too often assume that whitespace should be trimmed. It is therefore
> worthwhile emphasizing explicitly that whitespace is expected to be
> preserved.

Yeah, it sort of falls out of the whole empty whitespace text node thing and
how whitespace is dealt with in stylesheets. In any case, I agree with you that
emphasizing this is a good idea and will add the suggested requirement to
the specification.

				Ned