[tei-council] <content> vs <mixedContent>

Hugh Cayless philomousos at gmail.com
Fri Oct 3 14:19:35 EDT 2014


Surely those are identical? I suppose you could insert an empty text node
in the infoset, but it would be lost as soon as you serialized and then
re-parsed it. I was under the very strong impression that <foo></foo> and
<foo/> were exactly the same from an XML processor's point of view....

On Fri, Oct 3, 2014 at 12:28 PM, Sebastian Rahtz <
sebastian.rahtz at it.ox.ac.uk> wrote:

>
> On 3 Oct 2014, at 16:55, Lou Burnard <lou.burnard at retired.ox.ac.uk> wrote:
>>
> > The reason for treating it differently is that a serialization can have
> > a zero length textnode, which is not quite the same as an empty element.
>
> there is a difference in the info set, but not in the serialisation. how
> can
> there be?
>
> <foo></foo> and <foo/> are indistinguishable unless you are schema-aware.
>
> --
> Sebastian Rahtz
> Director (Research) of Academic IT
> University of Oxford IT Services
> 13 Banbury Road, Oxford OX2 6NN. Phone +44 1865 283431
>
> Não sou nada.
> Nunca serei nada.
> Não posso querer ser nada.
> À parte isso, tenho em mim todos os sonhos do mundo.
>
> --
> tei-council mailing list
> tei-council at lists.village.Virginia.EDU
> http://lists.village.Virginia.EDU/mailman/listinfo/tei-council
>
> PLEASE NOTE: postings to this list are publicly archived
>


More information about the tei-council mailing list