It turns out that when you create a named are in excel, each cell get the name as a tag when you save the file as an XML. Here is an excerpt of the EXCEL file save as an XML:
</Row>
<Row ss:Height="15.75">
<Cell ss:StyleID="s92"/>
<Cell ss:StyleID="s22"><Data ss:Type="String">IT Team Tasks</Data></Cell>
<Cell ss:StyleID="s27"/>
<Cell ss:StyleID="s28"/>
<Cell ss:StyleID="s29"><Data ss:Type="String">days remaining</Data></Cell>
<Cell ss:StyleID="s30" ss:Formula="=ROUND(R[3]C/8
,0)"><Data
ss:Type="Number">125</Data
><NamedCel
l ss:Name="days_remaining_es
timated"/>
</Cell>
<Cell ss:StyleID="s31" ss:Formula="=ROUND(R[3]C/8
,0)"><Data
ss:Type="Number">125</Data
><NamedCel
l ss:Name="days_remaining_es
timated"/>
</Cell>
<Cell ss:StyleID="s31" ss:Formula="=ROUND(R[3]C/8
,0)"><Data
ss:Type="Number">125</Data
><NamedCel
l ss:Name="days_remaining_es
timated"/>
</Cell>
...
</Row>
<Row ss:Height="15.75">
<Cell ss:StyleID="s92"><Data ss:Type="String">hide this line</Data></Cell>
<Cell ss:StyleID="s27"/>
<Cell ss:StyleID="s27"/>
<Cell ss:StyleID="s34"/>
<Cell ss:StyleID="s35"/>
<Cell ss:StyleID="s30"><Data ss:Type="Number">1</Data><
/Cell>
<Cell ss:StyleID="s36" ss:Formula="=RC[-1]+1"><Da
ta ss:Type="Number">2</Data><
/Cell>
<Cell ss:StyleID="s36" ss:Formula="=RC[-1]+1"><Da
ta ss:Type="Number">3</Data><
/Cell>
<Cell ss:StyleID="s36" ss:Formula="=RC[-1]+1"><Da
ta ss:Type="Number">4</Data><
/Cell>
<Cell ss:StyleID="s37" ss:Formula="=RC[-1]+1"><Da
ta ss:Type="Number">5</Data><
/Cell>
<Cell ss:StyleID="s36" ss:Formula="=RC[-1]+1"><Da
ta ss:Type="Number">6</Data><
/Cell>
<Cell ss:StyleID="s36" ss:Formula="=RC[-1]+1"><Da
ta ss:Type="Number">7</Data><
/Cell>
<Cell ss:StyleID="s36" ss:Formula="=RC[-1]+1"><Da
ta ss:Type="Number">8</Data><
/Cell>
Can you help me with producing an XSL sheet that will extract all the cells in a row that has a particular name (in this case it is "days_remaining_estimated"
). Can you show me how to extract the data from two named areas (also "days_remaining_calculated
" found elsewhere in the XML file).
How you output is not important, it could be:
<days_remaining_estimated>
<data>125</data>
<data>125</data>
<data>125</data>
<data>125</data>
</days_remaining_estimated
>
<days_remaining_calculated
ed>
<data>125</data>
<data>125</data>
<data>125</data>
<data>125</data>
</days_remaining_calculate
d>
I am providingin max points so that you completely document your work and explain the XSL: I am trying to learn XSL so I need a quick up-learning curve. Thanks!
Tiran