Re: Case where well formed ness could fly away

On 5/1/07, Innovimax SARL <innovimax@gmail.com> wrote:
>
>
> The point is : if on input there is sequence of well formed document,
> is it possible to have non well formed document as output
>
> Count
> Impossible
>
> Delete
> Impossible
>
> Error
> Impossible
>
> Escape Markup
> Impossible
>
> Head
> Impossible
>
> Identity
> Impossible
>
> Insert
> Not sure


Since you are inserting a child into an existing element, this should be OK.


Label element
> Impossible
>
> Load
> Impossible
>
> Matching documents
> Impossible
>
> Namespace rename
> You have to take care of Uniqueness of Attributes
> example
> <a ns1:a="2" ns2:a="2" xmlns:ns1="ns1" xmlns:ns2="ns2">..</a>
> rename from="ns2" to="ns1"


Namespace renames are by URI.  This shouldn't happen if the input document
is well-formed already.

Rename
> Can fail, but case are identified
>
> Replace
> Impossible
>
> Set attributes
> You have to take care of Uniqueness of Attributes
> <a ns1:a="2" xmlns:ns1="ns">
>
> attributes : <root ns2:a="2" xmlns:ns2="ns">


Attributes are merged and when they have the same name, the "attributes"
port
wins.

I hadn't intended namespace attributes to be handled by this step.

String Replace
> Not sure
>
> Store
> Impossible
>
> Tee
> Impossible
>
> Tail
> Impossible
>
> Unescape Markup
> Can fail in many ways


Yes, any parse error should cause the step to fail.  I should probably add
that.

Unwrap
> Can fail, one case is identified, but what about removing the node
> which contains namespace declarations ?


Namespace declaration fixup will be necessary  during serialization for
the results of many steps--not just unwrap.  As such, that's a serialization
problem.  Between steps, the namespaces and local names are known
and implementations that do not serialize between steps will not have
to worry about that.

We should probably make sure we have a general statement about
this somewhere in the spec.


Wrap
> Can fail with a non well formed name


Yes.  I should add something about the qname value of the option
resolving properly.


-- 
--Alex Milowski
"The excellence of grammar as a guide is proportional to the paucity of the
inflexions, i.e. to the degree of analysis effected by the language
considered."

Bertrand Russell in a footnote of Principles of Mathematics

Received on Tuesday, 1 May 2007 16:30:27 UTC