I need to convert to text mode by hand:
$ basex file.xq|perl -pwle 's/[^]+//g'
As all text serialization in Xquery can't deal with the same line
concept... unless one hardwires the line separators (0x0A) in via
string-join, which doesn't sound much like serialization to me.
There are 2 ways
fyi: I have added the suggestion [1] to the latest snapshot [2].
feedback is welcome.
[1] http://docs.basex.org/wiki/Serialization#Version_7.2
[2] http://files.basex.org/releases/latest/
___
On Sun, Mar 11, 2012 at 1:09 PM, Christian Grün
christian.gr...@gmail.com wrote:
There is, but you have to call XQuery natively instead of via the command line
-Original Message-
From: talk-boun...@x-query.com [mailto:talk-boun...@x-query.com] On Behalf Of
jida...@jidanni.org
Sent: Saturday, March 10, 2012 5:42 PM
To: t...@x-query.com
Cc:
DL == David Lee d...@calldei.com writes:
DL There is, but you have to call XQuery natively instead of via the command
line
Running the output through a tag stripper,
perl -pwle 's/[^]+//g'
sounds a 1000 times easier than trying to figure out how to do it
whatever is that way you mention.
All I know is using
$ cat file.xq
(: Make bus timetable going westbound past Zaokeng :)
declare option db:parser html;
declare option output:method html; (: etc., not poorly supported
text though :)
declare function local:d($M){
doc(concat(http://www.fybus.com.tw/data/;, $M))
};
let
On Sat, 2012-03-10 at 22:56 +, David Lee wrote:
There is, but you have to call XQuery natively instead of via the
command line
??!?
you can use string-join( your query here, #xa;)
or you may be able to use serialization options from the command line.
Lia
-Original Message-
LREQ == Liam R E Quin l...@w3.org writes:
LREQ On Sat, 2012-03-10 at 22:56 +, David Lee wrote:
There is, but you have to call XQuery natively instead of via the
command line
LREQ ??!?
LREQ you can use string-join( your query here, #xa;)
Haven't had to make my own newlines since using
Curious, are you looking for help or just to insult people ?
No one is insisting on anything
If you actually want help then we need some more information like what
processor you are using , what you are trying to achieve and what you've tried
and what are the results.
If you just want to
On Sat, 2012-03-10 at 22:56 +, David Lee wrote:
There is, but you have to call XQuery natively instead of via the
command line
??!?
My reading was the OP wanted newlines without having to add them in XQuery code.
That is beyond XQuery itself so my suggestion of using a native API.
But
On Sun, 2012-03-11 at 10:14 +0800, jida...@jidanni.org wrote:
Haven't had to make my own newlines since using those Control Data
computers back in the 80's. But if you insist...
XQuery is not really a line-oriented language. I don't agree with you
that it should be as easy as seq 1 3 any more
OK, I submitted https://www.w3.org/Bugs/Public/show_bug.cgi?id=16311
However as I have a rather hard time expressing myself,
perhaps those who know what I am saying could add some detail to the
bug. In the rare case the detail is wrong, I will chime in there. Thanks.
DL == David Lee d...@calldei.com writes:
DL It looks like the CLP of DB2 gives you the behaviour you are asking for
DL
http://publib.boulder.ibm.com/infocenter/db2luw/v9r5/index.jsp?topic=%2Fcom.ibm.db2.luw.xml.doc%2Fdoc%2Fxqrserial.html
OK maybe BaseX could do something like that, if that could
12 matches
Mail list logo