Here is an example of how to do it using xsltproc. Suppose your XML document (file.xml) contains 2 records i.e.
and you have an XSL stylesheet called file.xsl (deliberately simplified) which contains
Using xsltproc to transform the document produces the required output
I need to know the way. I have got parsing down some nodes. But I was unable to get the child node perfectly. If you have code please send it. It will be very useful for me. (0 Replies)
Hi! I'm just new here and don't know much about shell scripting. I just want to ask for help in creating a shell script that will parse a string or value of the status in the xml file. Please sample xml file below. Can you please help me create a simple script to get the value of status? Also it... (46 Replies)
Hi All,
I have been working on something that doesn't seem to have a clear regex solution and I just wanted to run it by everyone to see if I could get some insight into the method of solving this problem.
I have a flat text file that contains billing records for users, however the records... (5 Replies)
Hi Everybody,
I have an XML file containing some data and i want to extract it, but the specific issue in my file is that the data is repeated some times like the following example :
<section1>
<subsection1>
X=...
Y=...
Z=...
<\subsection1>
<subsection2>
X=...
Y=...
Z=...... (2 Replies)
Enclosed is comma separated text file. I need to write a korn shell program that will parse the text file and insert the values into Oracle database.
I need to write the korn shell program on Red Hat Enterprise Linux server.
Oracle database is 10g. (15 Replies)
Hi All,
I need to parse some statistic data from the "measInfo" -eg. 25250000 (as highlighted) and return the result into line by line, and erasing all other unnecessary info/tag.
Thought of starting with grep "measInfoID="25250000" but this only returns 1 line. How do I get all the output... (8 Replies)
Hello !
I am very aware that this is not the first time this question is asked here, because I have already read a lot of previous answers, but none of them worked, so...
As said in the title, I want to read a csv file with a bash script.
Here is a sample of the file:
... (4 Replies)
Hi All,
Hope all you are doing good! Need your help. I have an XML file which needs to be converted CSV file. I am not an expert of awk/sed so your help is highly appreciated!!
XML file looks like this:
<l:event dateTime="2013-03-13 07:15:54.713" layerName="OSB" processName="ABC"... (2 Replies)
Hello gurus,
I have a csv file with bunch of datas in each column. (see attached)
Now I have an .xml file in the structure of below:
?xml version="1.0" ?>
<component id="root" name="root">
<component id="system" name="system">
<param name="number_of_A" value="8"/>
... (5 Replies)
Discussion started by: Zam_1234
5 Replies
LEARN ABOUT DEBIAN
ooo2dbk
OOo2Dbk(1) General Commands Manual OOo2Dbk(1)NAME
OOo2Dbk - program to convert OpenOffice.org-Writer (ODT and SXW) files to DocBook XML documents.
SYNOPSIS
OOo2Dbk [options] openoffice.org-file
DESCRIPTION
This manual page documents briefly the OOo2Dbk commands.
OPTIONS
This version of OOo2Dbk understands the following command line options.
-h, --help
Show summary of options.
-cFILE, --config=FILE
Use FILE as the file path for the program configuration file. Defaults to the global /etc/ooo2dbk.xml configuration file or to the
ooo2dbk.xml configuration file in the ooo2dbk executable directory.
-zFILE, --zipfile=FILE
Use FILE as the filename for the generated ZIP archive
-dFILE, --dbkfile=FILE
Use FILE as the filename for the generated DocBook XML file. This option has no effect if the -z/--zipfile option is used.
-a, --article
Produce a DocBook XML article. This is the default.
-b, --book
Produce a DocBook XML book.
-xFILE, --xslt=FILE
Use FILE as the file path for the XSLT stylesheet. Defaults to the ooo2dbk.xsl stylesheet.
-mNAME, --cmdxslt=NAME
Use command NAME as the XSLT processor. Available command names are defined in OOo2Dbk /etc/ooo2dbk.xml file. Defaults to xsltproc.
-f, --flatxml
Preserve the intermediate OpenOffice.org XML file (global.xml)
-v, --verbose
Print additional information to stdout when running conversion.
AUTHOR
OOo2Dbk was written by Indesko (http://www.indesko.com/)
This manual page was written by Mohammed Adnene Trojette <adn+deb@diwi.org>, for the Debian project (but may be used by others).
January 7, 2005 OOo2Dbk(1)