Re: [basex-talk] How do I prevent BaseX from insisting on adding these supposed HTML attributes?
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 Holupirek 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 and: cat> bad.html<<\EOF Az B EOF basex -c 'set parser html; set htmlopt method=html,nons=true; create db htmldb bad.html' basex -q "doc('htmldb')" Az HORRIBLE B TERRIBLE How can I stop basex from insisting on adding such atrocious junk? ___ BaseX-Talk mailing list BaseX-Talk@mailman.uni-konstanz.de https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk -- Gerrit Imsieke Geschäftsführer / Managing Director le-tex publishing services GmbH Weissenfelser Str. 84, 04229 Leipzig, Germany Phone +49 341 355356 110, Fax +49 341 355356 510 gerrit.imsi...@le-tex.de, http://www.le-tex.de Registergericht / Commercial Register: Amtsgericht Leipzig Registernummer / Registration Number: HRB 24930 Geschäftsführer: Gerrit Imsieke, Svea Jelonek, Thomas Schmidt, Dr. Reinhard Vöckler ___ BaseX-Talk mailing list BaseX-Talk@mailman.uni-konstanz.de https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk
Re: [basex-talk] How do I prevent BaseX from insisting on adding these supposed HTML attributes?
> "AH" == Alexander Holupirek 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 and : cat > bad.html <<\EOF Az B EOF basex -c 'set parser html; set htmlopt method=html,nons=true; create db htmldb bad.html' basex -q "doc('htmldb')" Az HORRIBLE B TERRIBLE How can I stop basex from insisting on adding such atrocious junk? ___ BaseX-Talk mailing list BaseX-Talk@mailman.uni-konstanz.de https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk
Re: [basex-talk] How do I prevent BaseX from insisting on adding these supposed HTML attributes?
On 09.05.2012, at 15:52, jida...@jidanni.org wrote: > How do I prevent BaseX from insisting on adding these attributes? > > > 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 output:doctype-public "-//W3C//DTD HTML 4.01//EN"; > declare option output:doctype-system "http://www.w3.org/TR/html4/strict.dtd";; > declare option output:include-content-type "yes"; > > Doesn't it know that those are invalid attributes in 4.01, > and although I appreciate BaseX's effort in making my life more > wonderful, perhaps there is a way to get it to discourage itself from > all attributes adding assistance maybe? It's not clear to me, what you are trying to achieve. What attributes is BaseX adding to what? Please post a small snippet or example, so that we are able to test the problem. Thanks, Alex ___ BaseX-Talk mailing list BaseX-Talk@mailman.uni-konstanz.de https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk
[basex-talk] How do I prevent BaseX from insisting on adding these supposed HTML attributes?
How do I prevent BaseX from insisting on adding these attributes? 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 output:doctype-public "-//W3C//DTD HTML 4.01//EN"; declare option output:doctype-system "http://www.w3.org/TR/html4/strict.dtd";; declare option output:include-content-type "yes"; Doesn't it know that those are invalid attributes in 4.01, and although I appreciate BaseX's effort in making my life more wonderful, perhaps there is a way to get it to discourage itself from all attributes adding assistance maybe? ___ BaseX-Talk mailing list BaseX-Talk@mailman.uni-konstanz.de https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk