> If a query returns text, it's text. You can set the content-type 
> response header, if that helps.
> 
> xquery version "1.0-ml";
> 
> "do we escape text output? 1 < 2 &amp;&amp; 2 > 1"
> 
> I have to escape '&' in the XQuery string, because of language 
> requirements. But I don't see any escaping in the output.

Well gee, that's simple enough! Thank you for the answer, I guess
I should have just experimented a bit more before asking!  I had
tried queries like:

  'hi&#10;',
  'there'

as an attempt to emulate XSLT like

<xsl:stylesheet
   xmlns:xsl="http://www.w3.org/1999/XSL/Transform";
   version="2.0">
  <xsl:output method="text" />
  <xsl:template match="/">hi
there
</xsl:template>
</xsl:stylesheet>

and had been confused by the output words being joined instead of
appearing on separate lines, and thought I was trying the wrong
approach.

Jim

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
James A. Robinson                       [email protected]
Stanford University HighWire Press      http://highwire.stanford.edu/
+1 650 7237294 (Work)                   +1 650 7259335 (Fax)
_______________________________________________
General mailing list
[email protected]
http://xqzone.com/mailman/listinfo/general

Reply via email to