Wrox Programmer Forums
Go Back   Wrox Programmer Forums > XML > XSLT
|
XSLT General questions and answers about XSLT. For issues strictly specific to the book XSLT 1.1 Programmers Reference, please post to that forum instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the XSLT section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old October 21st, 2008, 02:28 AM
Authorized User
 
Join Date: Sep 2008
Posts: 87
Thanks: 1
Thanked 0 Times in 0 Posts
Default order of display

Hi i have an source xml and xsl i want to display in the order of xml tags .

xml:

<richtext xmlns:sgx="http://www.lotus.com/dxl">
  <pardef id="2" align="full" leftmargin="1in" rightmargin="7.2674in" />
  <par def="2">[ Masnet Announcement No. 77 made on 5 March 2002 appeared in a misaligned format. This announcement reproduces Masnet Announcement No. 77 made on 5 March 2002 in a proper aligned format. All information remain the same as previously announced. ]</par>
  <par def="2" />
  <par def="2">Further to the Full Year Results Announcement on 28 February 2002, Presscrete Holdings Limited (the "Company") would like to make the following clarifications on the provisions in connection with its 56.3% subsidiary Ceramic Technologies Pte Ltd ("CT").</par>
  <par def="2" />
  <par def="2">
    <run>
      Full Year Results Announcement made on 28 February 2002</run>
  </par>
  <par def="2">
    <run>

    </run>
  </par>
  <table user4spacing="true" rightmargin="7.2674in" widthtype="fitmargins" refwidth="5.6340in">
    <tablecolumn width="68.8299%" />
    <tablecolumn width="15.5833%" />
    <tablecolumn width="15.5833%" />
    <tablerow>
      <tablecell borderwidth="0px">
        <pardef id="3" leftmargin="1.0278in" rightmargin="4.8507in" keepwithnext="true" keeptogether="true" />
        <par def="3">
          <run>

          </run>
        </par>
      </tablecell>
      <tablecell borderwidth="0px">
        <pardef id="4" align="right" leftmargin="4.9063in" rightmargin="5.7285in" keepwithnext="true" keeptogether="true" />
        <par def="4">Group</par>
      </tablecell>
      <tablecell borderwidth="0px">
        <pardef id="5" align="right" leftmargin="5.7840in" rightmargin="6.6063in" keepwithnext="true" keeptogether="true" />
        <par def="5">Company</par>
      </tablecell>
    </tablerow>
    <tablerow>
      <tablecell borderwidth="0px">
        <par def="3">
          <run>

          </run>
        </par>
      </tablecell>
      <tablecell borderwidth="0px">
        <par def="4">S$ 000</par>
      </tablecell>
      <tablecell borderwidth="0px">
        <par def="5">S$ 000</par>
      </tablecell>
    </tablerow>
    <tablerow>
      <tablecell borderwidth="0px">
        <par def="3">
          <run>

          </run>
        </par>
      </tablecell>
      <tablecell borderwidth="0px">
        <par def="4">
          <run>

          </run>
        </par>
      </tablecell>
      <tablecell borderwidth="0px">
        <par def="5">
          <run>

          </run>
        </par>
      </tablecell>
    </tablerow>
    <tablerow>
      <tablecell borderwidth="0px">
        <par def="3">Impairment of assets in CT</par>
      </tablecell>
      <tablecell borderwidth="0px">
        <par def="4">14,456</par>
      </tablecell>
      <tablecell borderwidth="0px">
        <par def="5">
          <run>
            -</run>
        </par>
      </tablecell>
    </tablerow>
    <tablerow>
      <tablecell borderwidth="0px">
        <par def="3">Development cost written-off in CT</par>
      </tablecell>
      <tablecell borderwidth="0px">
        <par def="4">1,769</par>
      </tablecell>
      <tablecell borderwidth="0px">
        <par def="5">
          <run>
            -</run>
        </par>
      </tablecell>
    </tablerow>
    <tablerow>
      <tablecell borderwidth="0px">
        <par def="3" />
      </tablecell>
      <tablecell borderwidth="0px">
        <par def="4" />
      </tablecell>
      <tablecell borderwidth="0px">
        <par def="5">
          <run>

          </run>
        </par>
      </tablecell>
    </tablerow>
    <tablerow>
      <tablecell borderwidth="0px">
        <par def="3">Company s investment in CT s share capital written-off</par>
      </tablecell>
      <tablecell borderwidth="0px">
        <par def="4">-</par>
      </tablecell>
      <tablecell borderwidth="0px">
        <par def="5">5,647</par>
      </tablecell>
    </tablerow>
    <tablerow>
      <tablecell borderwidth="0px">
        <par def="3">Advances made to CT written-off</par>
      </tablecell>
      <tablecell borderwidth="0px">
        <par def="4">-</par>
      </tablecell>
      <tablecell borderwidth="0px">
        <par def="5">11,308</par>
      </tablecell>
    </tablerow>
    <tablerow>
      <tablecell borderwidth="0px">
        <par def="3">Contingent liabilities in respect of CT guarantee</par>
      </tablecell>
      <tablecell borderwidth="0px">
        <par def="4">-</par>
      </tablecell>
      <tablecell borderwidth="0px">
        <par def="5">2,061</par>
      </tablecell>
    </tablerow>
    <tablerow>
      <tablecell borderwidth="0px">
        <par def="3">
          <run>

          </run>
        </par>
      </tablecell>
      <tablecell borderwidth="0px">
        <par def="4">
          <run>
            ----------</run>
        </par>
      </tablecell>
      <tablecell borderwidth="0px">
        <par def="5">
          <run>
            ----------</run>
        </par>
      </tablecell>
    </tablerow>
    <tablerow>
      <tablecell borderwidth="0px">
        <par def="3">
          <run>

          </run>
        </par>
      </tablecell>
      <tablecell borderwidth="0px">
        <par def="4">16,225</par>
        <pardef id="6" align="right" leftmargin="4.9063in" rightmargin="5.7285in" keeptogether="true" />
        <par def="6">====</par>
      </tablecell>
      <tablecell borderwidth="0px">
        <par def="5">19,016</par>
        <pardef id="7" align="right" leftmargin="5.7840in" rightmargin="6.6063in" keeptogether="true" />
        <par def="7">====</par>
      </tablecell>
    </tablerow>
  </table>
  <par def="2">
    <run>

    </run>
  </par>
  <par def="2">
    <run>
      Announcement made on 2 January 2002</run>
  </par>
  <par def="2" />
  <table user4spacing="true" rightmargin="7.2674in" widthtype="fitmargins" refwidth="5.6347in">
    <tablecolumn width="59.4757%" />
    <tablecolumn width="20.2604%" />
    <tablecolumn width="20.2604%" />
    <tablerow>
      <tablecell borderwidth="0px">
        <pardef id="8" leftmargin="1.0278in" rightmargin="4.3236in" keepwithnext="true" keeptogether="true" />
        <par def="8">Company s investment in CT s share capital written-off</par>
      </tablecell>
      <tablecell borderwidth="0px">
        <pardef id="9" align="right" leftmargin="4.3792in" rightmargin="5.4653in" keepwithnext="true" keeptogether="true" />
        <par def="9">-</par>
      </tablecell>
      <tablecell borderwidth="0px">
        <pardef id="10" align="right" leftmargin="5.5208in" rightmargin="6.6069in" keepwithnext="true" keeptogether="true" />
        <par def="10">5,647</par>
      </tablecell>
    </tablerow>
    <tablerow>
      <tablecell borderwidth="0px">
        <par def="8">Advances made to CT written-off</par>
      </tablecell>
      <tablecell borderwidth="0px">
        <par def="9">-</par>
      </tablecell>
      <tablecell borderwidth="0px">
        <par def="10">12,589</par>
      </tablecell>
    </tablerow>
    <tablerow>
      <tablecell borderwidth="0px">
        <par def="8">Contingent liabilities in respect of CT guarantees</par>
      </tablecell>
      <tablecell borderwidth="0px">
        <par def="9">-</par>
      </tablecell>
      <tablecell borderwidth="0px">
        <par def="10">13,826</par>
      </tablecell>
    </tablerow>
    <tablerow>
      <tablecell borderwidth="0px">
        <par def="8">
          <run>

          </run>
        </par>
      </tablecell>
      <tablecell borderwidth="0px">
        <par def="9">
          <run>
            --------</run>
        </par>
      </tablecell>
      <tablecell borderwidth="0px">
        <par def="10">
          <run>
            ----------</run>
        </par>
      </tablecell>
    </tablerow>
    <tablerow>
      <tablecell borderwidth="0px">
        <par def="8">
          <run>

          </run>
        </par>
      </tablecell>
      <tablecell borderwidth="0px">
        <par def="9">-</par>
        <pardef id="11" align="right" leftmargin="4.3792in" rightmargin="5.4653in" keeptogether="true" />
        <par def="11">===</par>
      </tablecell>
      <tablecell borderwidth="0px">
        <par def="10">32,062</par>
        <pardef id="12" align="right" leftmargin="5.5208in" rightmargin="6.6069in" keeptogether="true" />
        <par def="12">====</par>
      </tablecell>
    </tablerow>
  </table>
  <pardef id="13" />
  <par def="13" />
  <par def="2" />
  <pardef id="14" align="full" leftmargin="1.5000in" rightmargin="7.2674in" firstlineleftmargin="1in" tabs="L1.5000in" />
  <par def="14">(A) In the Full Year Results Announcement made on 28 February 2002, provisions made in connection with CT at the <run>Company level</run> amounted to S$19,016,000. These provisions are classified as Exceptional Items and they comprised of:-</par>
  <par def="2" />
  <table user4spacing="true" rightmargin="7.2674in" widthtype="fitmargins" cellborderstyle="groove" refwidth="5.6340in">
    <tablecolumn width="7.5556%" />
    <tablecolumn width="5.75%" />
    <tablecolumn width="61.7708%" />
    <tablecolumn width="24.9201%" />
    <tablerow>
      <tablecell borderwidth="0px">
        <pardef id="15" align="right" leftmargin="1.0764in" rightmargin="1.3979in" keepwithnext="true" keeptogether="true" />
        <par def="15" />
      </tablecell>
      <tablecell borderwidth="0px">
        <pardef id="16" align="right" leftmargin="1.5021in" rightmargin="1.7215in" keepwithnext="true" keeptogether="true" />
        <par def="16">(a)</par>
      </tablecell>
      <tablecell borderwidth="0px">
        <pardef id="17" leftmargin="1.8257in" rightmargin="5.2021in" keepwithnext="true" keeptogether="true" />
        <par def="17">Company s investment in CT s share capital written-off</par>
      </tablecell>
      <tablecell borderwidth="0px">
        <pardef id="18" align="right" leftmargin="5.3063in" rightmargin="6.6063in" keepwithnext="true" keeptogether="true" />
        <par def="18">S$5,647,000</par>
      </tablecell>
    </tablerow>
    <tablerow>
      <tablecell borderwidth="0px">
        <par def="15" />
      </tablecell>
      <tablecell borderwidth="0px">
        <par def="16">(b)</par>
      </tablecell>
      <tablecell borderwidth="0px">
        <par def="17">Advances made to CT written-off</par>
      </tablecell>
      <tablecell borderwidth="0px">
        <par def="18">S$11,308,000</par>
      </tablecell>
    </tablerow>
    <tablerow>
      <tablecell borderwidth="0px">
        <par def="15" />
      </tablecell>
      <tablecell borderwidth="0px">
        <par def="16">(c)</par>
      </tablecell>
      <tablecell borderwidth="0px">
        <par def="17">Contingent liabilities in respect of CT s guarantee (corporate guarantee given to equipment supplier of CT)</par>
      </tablecell>
      <tablecell borderwidth="0px">
        <par def="18" />
        <pardef id="19" align="right" leftmargin="5.3063in" rightmargin="6.6063in" keeptogether="true" />
        <par def="19" />
        <par def="19">S$2,061,000</par>
      </tablecell>
    </tablerow>
    <tablerow>
      <tablecell borderwidth="0px">
        <par def="15" />
      </tablecell>
      <tablecell borderwidth="0px">
        <par def="16" />
      </tablecell>
      <tablecell borderwidth="0px">
        <pardef id="20" align="right" leftmargin="1.8257in" rightmargin="5.2021in" keepwithnext="true" keeptogether="true" />
        <par def="20" />
      </tablecell>
      <tablecell borderwidth="0px">
        <par def="18">--------------------</par>
      </tablecell>
    </tablerow>
    <tablerow>
      <tablecell borderwidth="0px">
        <par def="15" />
      </tablecell>
      <tablecell borderwidth="0px">
        <par def="16" />
      </tablecell>
      <tablecell borderwidth="0px">
        <par def="20" />
      </tablecell>
      <tablecell borderwidth="0px">
        <par def="18">S$19,016,000</par>
      </tablecell>
    </tablerow>
    <tablerow>
      <tablecell borderwidth="0px">
        <par def="15" />
      </tablecell>
      <tablecell borderwidth="0px">
        <par def="16" />
      </tablecell>
      <tablecell borderwidth="0px">
        <par def="20" />
      </tablecell>
      <tablecell borderwidth="0px">
        <par def="18">=======</par>
      </tablecell>
    </tablerow>
  </table>
  <par def="2" />
  <par def="2"> In the Announcement made on 2 January 2002, provisions made in connection with CT at the <run>Company level</run> amounted to S$32,062,000 and they comprised of:</par>
  <pardef id="21" align="full" leftmargin="5in" rightmargin="7.2674in" firstlineleftmargin="1in" tabs="L1.5000in L2in L2.5000in L3in L3.5000in L4in L4.5000in L5in" />
  <par def="21" />
  <par def="21" />
  <table user4spacing="true" rightmargin="7.2674in" widthtype="fitmargins" refwidth="5.6340in">
    <tablecolumn width="11.3819%" />
    <tablecolumn width="65.2674%" />
    <tablecolumn width="23.3438%" />
    <tablerow>
      <tablecell borderwidth="0px">
        <pardef id="22" align="right" leftmargin="1.0278in" rightmargin="1.6132in" keepwithnext="true" keeptogether="true" />
        <par def="22">(a)</par>
      </tablecell>
      <tablecell borderwidth="0px">
        <pardef id="23" leftmargin="1.6688in" rightmargin="5.2910in" keepwithnext="true" keeptogether="true" />
        <par def="23">Company s investment in CT s share capital written-off</par>
      </tablecell>
      <tablecell borderwidth="0px">
        <pardef id="24" align="right" leftmargin="5.3465in" rightmargin="6.6063in" keepwithnext="true" keeptogether="true" />
        <par def="24">S$5,647,000</par>
      </tablecell>
    </tablerow>
    <tablerow>
      <tablecell borderwidth="0px">
        <par def="22">(b)</par>
      </tablecell>
      <tablecell borderwidth="0px">
        <par def="23">Advances made to CT written-off</par>
      </tablecell>
      <tablecell borderwidth="0px">
        <par def="24">S$12,589,000</par>
      </tablecell>
    </tablerow>
    <tablerow>
      <tablecell borderwidth="0px">
        <par def="22">(c)</par>
      </tablecell>
      <tablecell borderwidth="0px">
        <par def="23">Contingent liabilities in respect of CT s guarantee (corporate guarantee given to equipment supplier and bank of CT)</par>
      </tablecell>
      <tablecell borderwidth="0px">
        <par def="24" />
        <pardef id="25" align="right" leftmargin="5.3465in" rightmargin="6.6063in" keeptogether="true" />
        <par def="25" />
        <par def="25">S$13,826,,000</par>
      </tablecell>
    </tablerow>
    <tablerow>
      <tablecell borderwidth="0px">
        <par def="22" />
      </tablecell>
      <tablecell borderwidth="0px">
        <pardef id="26" align="right" leftmargin="1.6688in" rightmargin="5.2910in" keepwithnext="true" keeptogether="true" />
        <par def="26" />
      </tablecell>
      <tablecell borderwidth="0px">
        <par def="24">---------------------</par>
      </tablecell>
    </tablerow>
    <tablerow>
      <tablecell borderwidth="0px">
        <par def="22" />
      </tablecell>
      <tablecell borderwidth="0px">
        <par def="26" />
      </tablecell>
      <tablecell borderwidth="0px">
        <par def="24">S$32,062,000</par>
      </tablecell>
    </tablerow>
    <tablerow>
      <tablecell borderwidth="0px">
        <par def="22" />
      </tablecell>
      <tablecell borderwidth="0px">
        <par def="26" />
      </tablecell>
      <tablecell borderwidth="0px">
        <par def="24">=======</par>
        <par def="25" />
      </tablecell>
    </tablerow>
  </table>
  <par def="2">The reasons for the difference between the two provisions are as follows:-</par>
  <par def="2" />
  <pardef id="27" align="full" leftmargin="2in" rightmargin="7.2674in" firstlineleftmargin="1in" tabs="L1.5000in L2in" />
  <par def="27"> (i) Advances made to CT written-off </par>
  <par def="2" />
  <pardef id="28" align="full" leftmargin="2in" rightmargin="7.2674in" />
  <par def="28">In the announcement of 2 January 2002, the advances made to CT were fully provided. However, in the Full Year Results Announcement on 28 February 2002, the advances made to CT were net of amount recoverable from the realisation of assets in CT based on a valuation of CT s assets carried out by a professional valuer after the announcement on 2 January 2002. The amount recoverable attributable to the Company was estimated to be S$1,281,000. Therefore, the amount provided for the advances made to CT was reduced from S$12,589,000 to S$11,308,000.</par>
  <par def="2" />
  <par def="27"> (ii) Contingent liabilities in respect of Guarantees</par>
  <par def="2" />
  <par def="28">In the announcement of 2 January 2002, the full amount of the Company s contingent liabilities under guarantees amounting to S$13,826,000 were provided in full, setting out the worst case scenario. The guarantees comprised of the amount of S$12,979,000 owing to CT s equipment supplier (Bedeschi S.p.A.) and a guarantee given to a bank for S$847,000. Subsequent to the announcement of 2 January 2002, the Company obtained confirmation that its liability under the guarantee to the bank of $847,000 was secured in fact by the mortgage of CT s factory and the provision was therefore removed. Between 2 January 2002 and 28 February 2002, the Company negotiated with CT s equipment supplier to settle the Company s liability under the corporate guarantee. Taking into account the value of CT s plant and equipment likely to be recovered by the equipment supplier and a further reduction the Company s liability to settle the claim of the equipment supplier, the provision made was reduced to S$2,061,000. </par>
  <par def="2" />
  <par def="14">(B) The provisions made in the Annoucement on 28 February 2002 under the exceptional items at the <run>Group level</run> amounting to S$16,225,000 comprised of impairment of assets in CT and development costs written-off in CT. </par>
  <par def="2" />
  <pardef id="29" align="full" leftmargin="1.5000in" rightmargin="7.2674in" />
  <par def="29">The difference for making these provisions when previously no provisions were made in the announcement of 2 January 2002 are as follows:</par>
  <par def="2" />
  <par def="27"> (i) Impairment of assets in CT </par>
  <par def="28" />
  <par def="28">Between 2 January 2002 and 28 February 2002, a valuation of assets in CT by a professional valuer was made. The valuation amount was less than the book values. Consequently on 28 February 2002, provision for impairment of assets based on the difference between the valuation and book values which amounted to S$14,456,000 was made.</par>
  <par def="2" />
  <par def="27">. (ii) Development costs written-off in CT</par>
  <par def="2" />
  <par def="28">Development costs in CT were previously amortised. In view of the fact that CT has been placed under judicial management on 25 January 2002, development costs in CT amounting to S$1,769,000 are now written-off to Profit &amp; Loss under exceptional item.</par>
</richtext>


xsl:

<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
    <xsl:template match="richtext">
        <html>
            <head>
                <title>SGX Announcements</title>
            </head>
            <body>
                <table align="center">
                    <tr>
                        <td width="800">

                                 <xsl:for-each select="par[@def='2'][not(run)]">
                                     <xsl:value-of select="." />
                                         <br />
                                 </xsl:for-each>
                                  <xsl:for-each select="par[not(run)]">
                                     <xsl:value-of select="." />
                                         <br />
                                 </xsl:for-each>


                                  <xsl:choose>
                                <xsl:when
                                    test="string-length(normalize-space(par[@def='2']/run)) &lt; 0">
                                    <xsl:for-each select="par[@def='2']">
                                        <xsl:value-of select="."></xsl:value-of>
                                        <br />
                                    </xsl:for-each>
                                </xsl:when>
                                <xsl:otherwise>
                                    <xsl:for-each select="par">
                                        <xsl:if
                                            test="string-length(normalize-space(picture/par/run)) &gt; 0">
                                            <xsl:variable name="imgpath"
                                                select="substring-before(substring-after(objectref/picture/par/run,'Images'), ')') " />

                                            <img src="{$imgpath}"/>

                                        </xsl:if>
                                        <xsl:if
                                            test="string-length(normalize-space(objectref/picture/par/run)) &gt; 0">
                                            <xsl:variable name="imgpath"
                                                            select="substring-before(substring-after(objectref/picture/par/run,'Images'), ')') " />
                                            <img src="{$imgpath}"/>
                                        </xsl:if>
                                        <xsl:for-each select="run">
                                            <xsl:value-of select="." disable-output-escaping="yes" />
                                        </xsl:for-each>
                                        <br />
                                    </xsl:for-each>
                                </xsl:otherwise>
                            </xsl:choose>

                            <xsl:if
                                test="string-length(normalize-space(par[@def='2']/run)) &lt; 0">
                                <xsl:for-each select="par[@def='2']">
                                    <xsl:value-of select="par[@def='2']">
                                    </xsl:value-of>
                                    <br />
                                </xsl:for-each>
                            </xsl:if>

                            <xsl:if
                                test="string-length(normalize-space(par[@def='3']/run)) &lt; 0">
                                <xsl:for-each select="par[@def='3']">
                                    <xsl:value-of select="par[@def='3']">
                                    </xsl:value-of>
                                    <br />
                                </xsl:for-each>
                            </xsl:if>

                           <xsl:variable name="docpath" select="substring-before(substring-after(.,'OpenFile('), ')') " />
                           <xsl:if test="string-length($docpath)&gt; 0">
                            <xsl:for-each select="par[@def='2']">
                                    <a href="{$docpath}">
                                        <xsl:value-of select="." disable-output-escaping="yes"> </xsl:value-of>
                                    </a>
                                <br />
                            </xsl:for-each>
                            </xsl:if>

                        </td>
                    </tr>
                    <xsl:for-each select="table/tablerow">
                                      <tr>
                                          <xsl:for-each select="tablecell">
                                              <td>
                                                  <xsl:text> </xsl:text>
                                                  <xsl:for-each select="par">
                                                      <xsl:value-of select="." />
                                                  </xsl:for-each>
                                              </td>
                                          </xsl:for-each>
                                      </tr>
                                      <br />
                     </xsl:for-each>
                </table>
            </body>
        </html>
    </xsl:template>
</xsl:stylesheet>








how can i display the thing in the order of my xml tags and if i have any empty values in my xpath how can i skip them instead of displaying empty space




 
Old October 21st, 2008, 02:55 AM
samjudson's Avatar
Friend of Wrox
 
Join Date: Aug 2007
Posts: 2,128
Thanks: 1
Thanked 189 Times in 188 Posts
Default

Seriously, if you think we have the spare time to read through all of that and work out what your problem is you have more than an XSLT problem...

Please try to to provide succinct examples, along with examples of what output you are getting and what you would like to get, and we will try to help.

/- Sam Judson : Wrox Technical Editor -/
 
Old October 21st, 2008, 03:24 AM
mhkay's Avatar
Wrox Author
 
Join Date: Apr 2004
Posts: 4,962
Thanks: 0
Thanked 292 Times in 287 Posts
Default

Surely you can explain your problem with a shorter sample of XML and XSL code?

A quick glance and at your problem statement suggests that you should be making much more use of template rules and xsl:apply-templates rather than xsl:for-each (sometimes called "push" processing versus "pull" processing). You'll find an explanation of these concepts in most XSLT books and tutorials.

For example, replace this kind of logic:

  <xsl:for-each select="par[@def='2'][not(run)]">
    <xsl:value-of select="." />
    <br />
  </xsl:for-each>
  <xsl:for-each select="par[not(run)]">
    <xsl:value-of select="." />
    <br />
  </xsl:for-each>

with <xsl:apply-templates select="par"/>, and a number of template rules to apply different kinds of processing to different kinds of par element.

>i have any empty values in my xpath how can i skip them instead of displaying empty space

Just write template rules to match the "empty values" and do nothing when these rules are fired.




Michael Kay
http://www.saxonica.com/
Author, XSLT 2.0 and XPath 2.0 Programmer's Reference
 
Old October 21st, 2008, 10:17 PM
Authorized User
 
Join Date: Sep 2008
Posts: 87
Thanks: 1
Thanked 0 Times in 0 Posts
Default

Hi

Thnx for the suggestion

whats the difference in using apply templates and for loop,how does that impact

Raj






Similar Threads
Thread Thread Starter Forum Replies Last Post
UNION and ORDER BY darcome SQL Language 11 October 10th, 2009 07:52 AM
ORDER BY Help U.N.C.L.E. SQL Server 2000 13 September 2nd, 2008 09:07 PM
display out of order html elements? chobo XSLT 2 April 1st, 2008 02:28 AM
Order by value in control shael ASP.NET 2.0 Basics 1 September 12th, 2007 08:30 PM
document node order vs sort node order. ladyslipper98201 XSLT 2 June 5th, 2003 11:06 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.