Dodecahedron
Technical User
have the following code (see end of question), the code is part of a report that generates the results in a word document.
The results are outputted as follows
Mark Smith (this is <xsl:value-of select="name" /> in first dataset example)
i Country 1 (this is <xsl:value-of select="destination" /> in second dataset example1)
ii Country 2
iii Country 3
George Burns
iv Country 4
v Country 5
The problem I have is that
1) the bullet points and destination start half way across the page I want them to start on the left as below:
George Burns
iv Country 4
v Country 5
2) I want to reset the numbering on each change of <xsl:value-of select="name" />, its continuous at the moment, so the output would be
Mark Smith (this is <xsl:value-of select="name" /> in first dataset name)
i Country 1 (this is <xsl:value-of select="destination" /> in second dataset example1)
ii Country 2
iii Country 3
George Burns
i Country 4
ii Country 5
Any help would be much appreciated
<xsl:template match="Name">
<w
xmlns:w=" xmlns:wx=" <w
Pr>
<w:rPr>
<w:rFonts w:cs="Arial" />
<w:u w:val="single" />
</w:rPr>
</w
Pr>
<w:r>
<w:rPr>
<w:rFonts w:cs="Arial" />
<w:u w:val="single" />
</w:rPr>
<w:t>
<xsl:value-of select="name" />
</w:t>
</w:r>
</w
>
<xsl:for-each select="Example1">
<xsl:if var="$id = id">
<w
xmlns:w=" xmlns:wx=" <w
Pr>
<w:listPr>
<w:ilvl w:val="2" />
<w:ilfo w:val="15" />
<wx:t wx:val="·" wx:wTabBefore="360" wx:wTabAfter="240" />
<wx:font wx:val="Symbol" />
</w:listPr>
<w:rPr>
<w:rFonts w:cs="Arial" />
</w:rPr>
</w
Pr>
<w:r>
<w:rPr>
<w:rFonts w:cs="Arial" />
</w:rPr>
<w:t>
<xsl:value-of select="destination" />
</w:t>
</w:r>
</w
>
</xsl:if>
</xsl:for-each>
The results are outputted as follows
Mark Smith (this is <xsl:value-of select="name" /> in first dataset example)
i Country 1 (this is <xsl:value-of select="destination" /> in second dataset example1)
ii Country 2
iii Country 3
George Burns
iv Country 4
v Country 5
The problem I have is that
1) the bullet points and destination start half way across the page I want them to start on the left as below:
George Burns
iv Country 4
v Country 5
2) I want to reset the numbering on each change of <xsl:value-of select="name" />, its continuous at the moment, so the output would be
Mark Smith (this is <xsl:value-of select="name" /> in first dataset name)
i Country 1 (this is <xsl:value-of select="destination" /> in second dataset example1)
ii Country 2
iii Country 3
George Burns
i Country 4
ii Country 5
Any help would be much appreciated
<xsl:template match="Name">
<w
<w:rPr>
<w:rFonts w:cs="Arial" />
<w:u w:val="single" />
</w:rPr>
</w
<w:r>
<w:rPr>
<w:rFonts w:cs="Arial" />
<w:u w:val="single" />
</w:rPr>
<w:t>
<xsl:value-of select="name" />
</w:t>
</w:r>
</w
<xsl:for-each select="Example1">
<xsl:if var="$id = id">
<w
<w:listPr>
<w:ilvl w:val="2" />
<w:ilfo w:val="15" />
<wx:t wx:val="·" wx:wTabBefore="360" wx:wTabAfter="240" />
<wx:font wx:val="Symbol" />
</w:listPr>
<w:rPr>
<w:rFonts w:cs="Arial" />
</w:rPr>
</w
<w:r>
<w:rPr>
<w:rFonts w:cs="Arial" />
</w:rPr>
<w:t>
<xsl:value-of select="destination" />
</w:t>
</w:r>
</w
</xsl:if>
</xsl:for-each>