View Single Post
  #2 (permalink)  
Old September 6th, 2011, 04:17 AM
mhkay's Avatar
mhkay mhkay is offline
Wrox Author
Points: 18,481, Level: 59
Points: 18,481, Level: 59 Points: 18,481, Level: 59 Points: 18,481, Level: 59
Activity: 100%
Activity: 100% Activity: 100% Activity: 100%
 
Join Date: Apr 2004
Location: Reading, Berks, United Kingdom.
Posts: 4,960
Thanks: 0
Thanked 292 Times in 287 Posts
Default

Code:
=
is just a long-winded way of writing "=": no sane XML application will treat the content
Code:
<x>&#x3d;</x>
differently from
Code:
<x>=</x>
, or care about which representation is used in the output. Is that what your question is about?

Apart from that, it's trivial:

Code:
<xsl:template match="@*[. = '=']">
  <xsl:copy>
    <xsl:attribute name="font">XYZ</xsl:attribute>
    <xsl:attribute name="font-size">12.6</xsl:attribute>
    <xsl:text>=</xsl:text>
  </xsl:copy>
</xsl:template>
__________________
Michael Kay
http://www.saxonica.com/
Author, XSLT 2.0 and XPath 2.0 Programmer\'s Reference
Reply With Quote