OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help



   Re: [xml-dev] Is an XQuery Document an XML Document?

[ Lists Home | Date Index | Thread Index ]

> There is no XML declaration so you might conclude, "No, an XQuery document
> is  not an XML document."

The XML declaration is optional.

> <Equation> {if (1 < 2) then "TRUE" else "FALSE"} </Equation>

According to the note just before section 3.5.1
  When an XPath expression is written within an XML document, the XML
  escaping rules for special characters must be followed; thus "<" must be
  written as "&lt;".

Rich Salz                  Chief Security Architect
DataPower Technology       http://www.datapower.com
XS40 XML Security Gateway  http://www.datapower.com/products/xs40.html
XML Security Overview      http://www.datapower.com/xmldev/xmlsecurity.html


News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS