02-21-2010
Need help in xslt transformation
Hi
I have one input xml file
<param name="EXTR_COL" valueDesc="AUTHD_RFLL" value="rx.AUTHD_RFLL" />
There is a mapping parameters in Database.
if EXTR_COL is present in input XML then it is mapped to fieldlist.
so the o/p XML looks like
<fieldlist>
<datasource name="Oracle database" value="">
<schemaname value="schema">
<table value="tablename" dbobjtype="table">
<field value="AUTHD_RFLL" calcid="0" dbobjtype="field" datatype="varchar2" datasize="9" precision="0" not_null="true">
I want to know how we can do this transformation.
5 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I've got a multitude of text data files that carry exactly the same kind of data. Unfortunately some of them have a different filename format
some are: 'category'_'month'-'year'_act.txt
an example being: daf_Apr-1961_act.txt
and some are: 'category'_ 'year'-'month'_act.txt
an... (16 Replies)
Discussion started by: vrms
16 Replies
2. Shell Programming and Scripting
hi experts:
i am using xslt to transform xml in shell.
But can not find root node of source xml, if i remove the naming space definition in source xml, it works fine.
So our the question is how to let xslt know the naming space of srouce xml file?
Thanks for your kindly help in... (0 Replies)
Discussion started by: summer_cherry
0 Replies
3. Shell Programming and Scripting
Hi ..
I have one input XML and I want to convert into another XML using parameter mapping through Database through Unix shell script. But I dont have idea how to do that.
And how can I create xsl sheet if mapping is through database tables.
Please help me on this. (1 Reply)
Discussion started by: srinu19
1 Replies
4. HP-UX
Hi
I have one input xml file
<param name="EXTR_COL" valueDesc="AUTHD_RFLL" value="rx.AUTHD_RFLL" />
There is a mapping parameters in Database.
if EXTR_COL is present in input XML then it is mapped to fieldlist.
so the o/p XML looks like
<fieldlist>
<datasource... (1 Reply)
Discussion started by: srinu19
1 Replies
5. Shell Programming and Scripting
I do have an input text file of the following format with 1000's of lines
input file:
3386(11:11,Ani:0,Bri:1,ch:1,Jwe:0,Jor:0,LP:0,Lo:0,NS:1,al:1,bo:0,boy:0,bru:0,sh:0,cor:1,dum:0,ery:0,mac:0,mic:0)... (3 Replies)
Discussion started by: Kanja
3 Replies
LEARN ABOUT DEBIAN
graphviz::xml
GraphViz::XML(3pm) User Contributed Perl Documentation GraphViz::XML(3pm)
NAME
GraphViz::XML - Visualise XML as a tree
SYNOPSIS
use GraphViz::XML;
my $graph = GraphViz::XML->new($xml);
print $g->as_png;
DESCRIPTION
This module makes it easy to visualise XML as a tree. XML is hard for humans to grasp, especially if the XML is computer-generated. This
modules aims to visualise the XML as a graph in order to make the structure of the XML clear and to aid in understanding the XML.
XML elements are represented as diamond nodes, with links to elements within them. Character data is represented in round nodes.
Note that the XML::Twig module should be installed.
METHODS
new
This is the constructor. It takes one mandatory argument, which is the XML to be visualised. A GraphViz object is returned.
my $graph = GraphViz::XML->new($xml);
as_*
The XML can be visualised in a number of different graphical formats. Methods include as_ps, as_hpgl, as_pcl, as_mif, as_pic, as_gd,
as_gd2, as_gif, as_jpeg, as_png, as_wbmp, as_ismap, as_imap, as_vrml, as_vtx, as_mp, as_fig, as_svg. See the GraphViz documentation for
more information. The two most common methods are:
# Print out a PNG-format file
print $g->as_png;
# Print out a PostScript-format file
print $g->as_ps;
BUGS
GraphViz tends to reorder the nodes. I hope to find a work around soon (possibly with ports).
AUTHOR
Leon Brocard <acme@astray.com>
COPYRIGHT
Copyright (C) 2001, Leon Brocard
This module is free software; you can redistribute it or modify it under the same terms as Perl itself.
perl v5.14.2 2012-04-02 GraphViz::XML(3pm)