|
[XQuery Talk Mailing List Archive Home] [By Date] [By Thread] [By Subject] [By Author] [Recent Entries] [Reply To This Message] is this a quine ?James Fuller james.fuller.2007 at gmail.comTue Jun 24 11:26:57 PDT 2008
Is this a quine ? --------------------------------- xquery version "1.0"; declare variable $s:='xquery version "1.0"; declare variable $s:="";fn:substring($s,1,44),$s,fn:substring($s,45)'; fn:substring($s, 1,44), $s, fn:substring($s,45) --------------------------------- running this through saxon I get; --------------------------------- <?xml version="1.0" encoding="UTF-8"?>xquery version "1.0"; declare variable $s:=" xquery version "1.0"; declare variable $s:="";fn:substring($s,1,44),$s,fn:substring($s,45) ";fn:substring($s,1,44),$s,fn:substring($s,45) --------------------------------- so barring whitespace issues .. the only problem is the need to use a processor specific option to control output of version/encoding .... not very nice that. to the point; I am a little confused with this default behavior; isn't the result of a query a sequence of nodes and atomic values ... is this behavior specified or left to the implementator to decide ? cheers, Jim Fuller
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|






