[Bug 659326] New: [SMBTA] make smbtaquery output XML
https://bugzilla.novell.com/show_bug.cgi?id=659326 https://bugzilla.novell.com/show_bug.cgi?id=659326#c0 Summary: [SMBTA] make smbtaquery output XML Classification: openSUSE Product: openSUSE 11.3 Version: Final Platform: Other OS/Version: Other Status: ASSIGNED Severity: Normal Priority: P5 - None Component: Samba AssignedTo: hhetter@novell.com ReportedBy: hhetter@novell.com QAContact: samba-maintainers@SuSE.de CC: bgeuken@novell.com, mhaefner@novell.com, bbrunner@novell.com Blocks: 656695 Found By: --- Blocker: --- First patches for this have already landed in the devel branch. The idea is to have XML output to a file with the -x --xml <file> option only. Once this feature has become mature, we will switch to the -x --xml behaviour by default and produce common console output via xslt, and enhance our translators to produce more completely different formats. For 1.2.2, I am targetting XML output of all functions with the -x option. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=659326 https://bugzilla.novell.com/show_bug.cgi?id=659326#c1 --- Comment #1 from Holger Hetterich <hhetter@novell.com> 2010-12-15 12:33:33 UTC --- all function now return XML code on option -x, and are shapely by means of firefox, which does a test of an xml tree being well formed when reading an xml file. This bug stays open for documentation needs, and maybe the inclusion of an XML to ASCII-text XSLT for 1.2.2. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=659326 https://bugzilla.novell.com/show_bug.cgi?id=659326#c2 --- Comment #2 from Holger Hetterich <hhetter@novell.com> 2010-12-15 21:03:07 UTC --- Experimenting with XML to HTML translation, I am surprised how easy it actually is. I suggest leaving this bug open until we have a complete XML-HTML XSLT for inclusion in 1.2.2. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=659326 https://bugzilla.novell.com/show_bug.cgi?id=659326#c3 --- Comment #3 from Holger Hetterich <hhetter@novell.com> 2010-12-27 19:34:13 UTC --- Status update: usage -> html, ascii top -> html, ascii last_activity -> html, ascii With being usage and last_activity the most complex functions already working, I propose we are moving to XML only for 1.2.2. The quality of the ascii output of the ascii stylesheet is much better than the c coded printf stuff. This will make smbtaquery require libxlst/xsltproc. We will default to the ASCII output, can enforce raw xml output with -x , and will have another option to decide the output format. Instead of including libxslt in the code, we will call xsltproc after having generated a temporary xml file, thats much easier to handle. Anyone against this plan? I continue that way if no one jumps in. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=659326 https://bugzilla.novell.com/show_bug.cgi?id=659326#c4 --- Comment #4 from Holger Hetterich <hhetter@novell.com> 2011-01-02 21:37:11 UTC --- Any smbtaquery result can be outputted to ascii or html now. The two stylesheets are complete. They are now isntalled in the share/smbtatools directory and are looked up there by default. Environment variables can be set to look into an alternative directory for the stylesheets and for the xsltproc binary. Furthermore, we require xsltproc now for normal operation to provide ascii output on the terminal. A fallback is possible with the -x option generating raw xml output to process with any xslt processor. The -o option has been added, allowing to choose the output format ( -o ascii is the default, -o html can be specified). Two things are missing to complete this: - Update the documentation - a nicer header generator for the functions. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=659326 https://bugzilla.novell.com/show_bug.cgi?id=659326#c5 --- Comment #5 from Holger Hetterich <hhetter@novell.com> 2011-01-02 22:36:43 UTC --- Reasonable headers are now generated for every function, automatically in any output format. It finally pays off to have moved to XML. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=659326 https://bugzilla.novell.com/show_bug.cgi?id=659326#c6 --- Comment #6 from Holger Hetterich <hhetter@novell.com> 2011-01-02 22:43:27 UTC --- I propose this as feature complete for 1.2.2, and now update the documentation. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=659326 https://bugzilla.novell.com/show_bug.cgi?id=659326#c7 --- Comment #7 from Holger Hetterich <hhetter@novell.com> 2011-01-02 23:26:36 UTC --- Documentation updated. Now merging this to the master branch to finally close this bug. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=659326 https://bugzilla.novell.com/show_bug.cgi?id=659326#c8 Holger Hetterich <hhetter@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |FIXED --- Comment #8 from Holger Hetterich <hhetter@novell.com> 2011-01-03 00:20:33 UTC --- master is merged, resolving this bug. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com