B
Bill Sneddon
I am using an XML file produced by doing a save-as in Excel. The file
has content that looks like one of these three examples lines:
<Cell ss:StyleID="s24"><ssata ss:Type="String"
xmlns="http://www.w3.org/TR/REC-html40">H<Sub>3</Sub><Font>PO</Font><Sub>4
</Sub></ssata></Cell>
<Cell ss:StyleID="s24"><Data ss:Type="String">GC</Data></Cell>
<Cell ss:StyleID="s24"><ssata ss:Type="String"
xmlns="http://www.w3.org/TR/REC-html40">I<Sub>CC</Sub></ssata></Cell>
What I would like to do is produce html that formats the subscript
properly. For example I would like to display H3PO4 with the 3 & 4
subscripted like this H<Sub>3</Sub><Font>PO</Font><Sub>4</Sub>
when I do this select <xsl:value-of select="Cell[1]"/>
I get H3PO4 back. I<Sub>CC</Sub> would also be valid data so
I can't make assuptions about the number of <Sub> tags and where they
might be in the data.
I am not sure if the solution to this is easy or not. I still trying to
understand XSL and may be overlooking something.
Bill
has content that looks like one of these three examples lines:
<Cell ss:StyleID="s24"><ssata ss:Type="String"
xmlns="http://www.w3.org/TR/REC-html40">H<Sub>3</Sub><Font>PO</Font><Sub>4
</Sub></ssata></Cell>
<Cell ss:StyleID="s24"><Data ss:Type="String">GC</Data></Cell>
<Cell ss:StyleID="s24"><ssata ss:Type="String"
xmlns="http://www.w3.org/TR/REC-html40">I<Sub>CC</Sub></ssata></Cell>
What I would like to do is produce html that formats the subscript
properly. For example I would like to display H3PO4 with the 3 & 4
subscripted like this H<Sub>3</Sub><Font>PO</Font><Sub>4</Sub>
when I do this select <xsl:value-of select="Cell[1]"/>
I get H3PO4 back. I<Sub>CC</Sub> would also be valid data so
I can't make assuptions about the number of <Sub> tags and where they
might be in the data.
I am not sure if the solution to this is easy or not. I still trying to
understand XSL and may be overlooking something.
Bill