Abhijit Junnare wrote:
Hi,
I am using the text-transform property to convert some
content to uppercase if an attribute has a specif
value. I tried using font-variant="small-caps" but it
doesnt give me the desired results. I looked through the FOP documentation and it says
that the text-transform property is NOT yet
implemented in FOP. I am wondering if there is any
chance that this will be implemented in FOP and if yes
how long would it take.

According to the FOP Compliance page (watch wrap):

http://xml.apache.org/fop/compliance.html#fo-property-text-transform

There is "basic" support for text-transform, but "extended" support is not available. I clicked on the "�7.16.6" link:

http://www.w3.org/TR/xsl/slice7.html#text-transform

and according to that page, the proper usage would be:

  text-transform="uppercase"

Are you saying this doesn't work?

If you are trying to do it based on an attributes value, you could try:

<xsl:choose>
  <!-- ATTRIBUTE EXISTS -->
  <xsl:when test="XPATH/TO/@[.='Y']">
    <xsl:attribute name="text-transform">uppercase</xsl:attribute>
  </xsl:when>
  <!-- ATTRIBUTE DOES NOT EXIST -->
  <xsl:otherwise>
    <xsl:attribute name="text-transform">none</xsl:attribute>
  </xsl:otherwise>
</xsl:choose>

I tried writing a template to convert to capital
letters but it doesnt work the way I need coz I am
setting the attribute in the parent and I need its
children to inherit it irrespective of the level of
depth. Hence I cant pass a specific string to the
conversion template.

For the children, you might need them wrapped with

  text-transform="inherit"

(...although I would think it would automatically inherit...)

If anyone has suggestion then will really appreciate
them.
Thanks,
Abhi

HTH!


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to