[basex-talk] Method to transform XQuery output to HTML!!

2012-05-09 Thread Anand Chiney
Dear BaseX Team, Is there any function/method by which I can transform the Xquery output to HTML file using XSLT? A simple method or like where I can pass the XSLT File and get HTML output easily...!! -- Regards Have a nice day :) Anand Chiney ___

Re: [basex-talk] Full-text search and mixed content

2012-05-09 Thread Cerstin Mahlow
Hi Christian, Zitat von Christian Grün christian.gr...@gmail.com: Thanks for the information, that's good to know. I think I'll file an enhancement request then: For text-oriented applications (e.g., TEI documents), it would be extremely useful if ft:mark would work with descendant elements;

Re: [basex-talk] Full-text search and mixed content

2012-05-09 Thread Christian Grün
Thanks, Cerstin and Michael, for your suggestions. Yes, all the use cases sound perfectly reasonable to me. When it comes to the implementation, I see quite a number of obstacles to make this happen. One of the reasons is that the full-text expression, as currently implemented, discards all

Re: [basex-talk] insert arbitrary files

2012-05-09 Thread Christian Grün
On Wed, May 9, 2012 at 3:28 PM, jida...@jidanni.org wrote: How does one insert an arbitrary file. doc('q') parses it. How does one just, you know, #include q as in C? Hm, where do you want to include your file? Do you have a small, concise example? C.

[basex-talk] How do I prevent BaseX from insisting on adding these supposed HTML attributes?

2012-05-09 Thread jidanni
How do I prevent BaseX from insisting on adding these attributes? a shape=rect br clear=none What more do I need to tell it? declare option db:parser html; declare option db:htmlopt method=html,nons=true; declare option output:method html; declare option output:version 4.01; declare option

Re: [basex-talk] insert arbitrary files

2012-05-09 Thread jidanni
CG == Christian Grün christian.gr...@gmail.com writes: CG Hm, where do you want to include your file? Do you have a small, CG concise example? CG C. body {insert_file(blob_of_bytes)} h1 ___ BaseX-Talk mailing list

Re: [basex-talk] insert arbitrary files

2012-05-09 Thread Christian Grün
 body  {insert_file(blob_of_bytes)}    h1 ..try file:read-text() or file:read-binary(): http://docs.basex.org/wiki/File#file:read-text ___ BaseX-Talk mailing list BaseX-Talk@mailman.uni-konstanz.de

Re: [basex-talk] How do I prevent BaseX from insisting on adding these supposed HTML attributes?

2012-05-09 Thread Alexander Holupirek
On 09.05.2012, at 15:52, jida...@jidanni.org wrote: How do I prevent BaseX from insisting on adding these attributes? a shape=rect br clear=none What more do I need to tell it? declare option db:parser html; declare option db:htmlopt method=html,nons=true; declare option output:method

Re: [basex-talk] How do I prevent BaseX from insisting on adding these supposed HTML attributes?

2012-05-09 Thread jidanni
AH == Alexander Holupirek alexander.holupi...@uni-konstanz.de writes: AH Please post a small snippet or example, so that we are able to test the problem. Taking the example from the Debian basex man page, we add an innocent br and a: cat bad.html \EOF html ul

Re: [basex-talk] Java proxy host port credentials

2012-05-09 Thread Christian Grün
Hi Erol, did you manage to set the proxy with earlier versions of BaseX? Christian ___ On Wed, May 9, 2012 at 5:07 PM, Erol Akarsu eaka...@gmail.com wrote: Christian, How can I set proxy settings with basex 7.2 through XQJ? You mentioned it in your previous emails.

Re: [basex-talk] How do I prevent BaseX from insisting on adding these supposed HTML attributes?

2012-05-09 Thread Imsieke, Gerrit, le-tex
It isn’t the fault of BaseX. The parser (tagsoup, if you choose HTML parsing) inserts the default values for attributes. You should be able to suppress it by adding nodefaults=true to HTMLOPT. On 2012-05-09 17:07, jida...@jidanni.org wrote: AH == Alexander

Re: [basex-talk] Change default XML encoding

2012-05-09 Thread Christian Grün
Dear Guillaume, if a document contains no XML declaration, the XML specification assumes UTF8 as default encoding, which is why is documents with another encoding will be declared as non-wellformed. As there is no possibility of overriding this default, you'll have to convert your documents in

Re: [basex-talk] insert arbitrary files

2012-05-09 Thread jidanni
CG == Christian Grün christian.gr...@gmail.com writes: CG ..try file:read-text() or file:read-binary(): CG http://docs.basex.org/wiki/File#file:read-text They don't work. The first ruins all brackets it encounters, escaping them. The latter just returns base64. There is no way to get the

Re: [basex-talk] insert arbitrary files

2012-05-09 Thread Christian Grün
The first ruins all brackets it encounters, escaping them. That's what XML serialization is about; everything else would be invalid. Once again, you may want to switch to text as output method to avoid escaping: http://docs.basex.org/wiki/Serialization Christian

Re: [basex-talk] insert arbitrary files

2012-05-09 Thread jidanni
CG == Christian Grün christian.gr...@gmail.com writes: The first ruins all brackets it encounters, escaping them. CG That's what XML serialization is about; everything else would be CG invalid. Once again, you may want to switch to text as output method CG to avoid escaping: CG

Re: [basex-talk] Full-text search and mixed content

2012-05-09 Thread Christian Grün
Ah, thanks a lot!  I would have never guessed this...  Maybe the documentation should say something like: Querying across elements is only supported when whitespace chopping is off.  If it's ok with you, I'll add it. ..thanks again for editing our Wiki -- always welcome! I've slightly added

[basex-talk] Fpml + Basex

2012-05-09 Thread Henrique Oliveira
Folks, We are developing a financial system, it will deal mainly with xml(Fpml) files, so I think the best thing to do is using a xml db, we are evaluating some db, including Berkeley, MarkLogic, Sedna and of course Basex, Berkeley is open source but we can't use, you need to pay for that,

Re: [basex-talk] insert arbitrary files

2012-05-09 Thread jidanni
CG == Christian Grün christian.gr...@gmail.com writes: CG XQuery may not be the best language for such a use case. OK, I put a @@@ marker in a comment to trigger sed to read it in in my Makefile lyrics.html:playlists.xquery playlists.xml english.html basex $ |sed '/@@@/r english.html' $@