Hi all,
I am really new to XML and have been asked to do a simple task o filtering out records from an XML source. The source XML however, i hard to understand and I can't quite figure out how to filter th records. I have written a script which loads the XML in and I have use an XML viewer to view the actual XML document in tree structure whic helps.
I have attached the XML and XSL if anyone would like to take a look a it. The structure is different from the examples I've seen on the web Basically, it looks something like this:
If you navigate down through the nodes:
//mi/rit/vw/gr/ly/rt/t
You will see an element (or node not sure) called "Store Region".
Then, if you navigate down through:
//mi/rit/vw/gr/rh/rw/h/fv
You will see a value "10". This is Store region 10.
In this example XML there are two Store Regions. Store Region 10 an Store Region 25. I need to filter out (either through code or throug the XSL) all the records for Store Region 10.
Also, I found the conversion table for the node descrptions, they are:
<rit> = report_instance
<rd> = report definition
<ord> = original report definition
<vw> = view
<gr> = grid
<ly> = layout
<rt> = row titles, <cts> = column titles, <pts> = page titles <t> = title <rh> = row header, <rw> = row <h> = header <fv> = form value <mv> = metric value <sv> = subtotal value <chs> = column headers, <ch> = column header <phs> = page headers, <ph> = page header <dp> = drill path, <da> = drill action <f> = filter <tm> = template <rsl> = resolution <gpp> = graph properties, <gdp> = grid properties <vws> = view setting
Any help really appreciated
+---------------------------------------------------------------- | Attachment filename: xmlexample.zip |Download attachment: http://www.forum4designers.com/attachment.php?postid=162312 +----------------------------------------------------------------
jj2
I am really new to XML and have been asked to do a simple task o filtering out records from an XML source. The source XML however, i hard to understand and I can't quite figure out how to filter th records. I have written a script which loads the XML in and I have use an XML viewer to view the actual XML document in tree structure whic helps.
I have attached the XML and XSL if anyone would like to take a look a it. The structure is different from the examples I've seen on the web Basically, it looks something like this:
If you navigate down through the nodes:
//mi/rit/vw/gr/ly/rt/t
You will see an element (or node not sure) called "Store Region".
Then, if you navigate down through:
//mi/rit/vw/gr/rh/rw/h/fv
You will see a value "10". This is Store region 10.
In this example XML there are two Store Regions. Store Region 10 an Store Region 25. I need to filter out (either through code or throug the XSL) all the records for Store Region 10.
Also, I found the conversion table for the node descrptions, they are:
<rit> = report_instance
<rd> = report definition
<ord> = original report definition
<vw> = view
<gr> = grid
<ly> = layout
<rt> = row titles, <cts> = column titles, <pts> = page titles <t> = title <rh> = row header, <rw> = row <h> = header <fv> = form value <mv> = metric value <sv> = subtotal value <chs> = column headers, <ch> = column header <phs> = page headers, <ph> = page header <dp> = drill path, <da> = drill action <f> = filter <tm> = template <rsl> = resolution <gpp> = graph properties, <gdp> = grid properties <vws> = view setting
Any help really appreciated
+---------------------------------------------------------------- | Attachment filename: xmlexample.zip |Download attachment: http://www.forum4designers.com/attachment.php?postid=162312 +----------------------------------------------------------------
jj2