[xquery-talk] XML prologue
mhk at mhk.me.uk
Mon Jul 25 23:27:33 PDT 2005
The XML declaration (as it's correctly known) is part of the serial XML
document, but not part of the data model. It's constructed by the serializer
when the data model is written out to a file. This is because the
information is contains (XML version, encoding) is information about the
serialized file, not information about the data model itself.
> -----Original Message-----
> From: talk-bounces at xquery.com
> [mailto:talk-bounces at xquery.com] On Behalf Of Frank Cohen
> Sent: 25 July 2005 21:47
> To: talk at xquery.com
> Subject: [xquery-talk] XML prologue
> Hi All: My first posting to the talk at xquery.com list. I'm looking
> forward to contributing too.
> let $a := <frank/>
> let $b :=<?xml version="1.0"?><frank/>
> $a works as expected.
> $b fails with a lexxing error.
> I read the XQuery 4/2005 spec and don't see that this is not allowed
> but the 3 different XQuery processors I ran this on all have a
> problem with it.
> What was the reasoning behind disallowing the XML prologue?
> Frank Cohen, Raining Data, http://www.RainingData.com, phone:
> 408 236
> Author of "Java Testing and Design: From Unit Tests to Automated Web
> from Prentice Hall, details at http://thebook.pushtotest.com
> talk at xquery.com
More information about the talk