Altova Mailing List Archives


Re: Indent in table

From: "Anthony Jones" <Ant@------------.--->
To: NULL
Date: 4/26/2006 2:02:00 PM


"Jean-Marc St-Hilaire" <jeanmarc.sthilaire@s...> wrote in message
news:uHpuM6SaGHA.5004@T......
> I am a beginner in XLM and XSLT
> This is a part of my xsl file which is corresponding to apply-templates
>
> <xsl:template match="Items">
>    <tr>
>      <td><xsl:value-of select="PrNo"/></td>
>      <td ><xsl:value-of select="PrDesc"/></td>
>      <td align="center" valign="top"><xsl:value-of select="PrUnit"/></td>
>    </tr>
>    </xsl:template>
>
> I would like to have the Description (prDesc) indent for about 1 or 2
spaces
> from the td border left and right side.
>
> I did try the following
>      <td style="margin-left: 10; margin-right: 10" ><xsl:value-of
> select="PrDesc"/></td>
> the text appers in the right box but it still stays stick to border. Any
> clue ?
>

Use padding-left and padding-right

Not really an XML question though was it.


> Thanks
>
> -- 
> Service Informatique RC Ltd
> Jean-Marc St-Hilaire
> sirc@s...
>
>
>
>
>


Disclaimer

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.