Skip to content

Instantly share code, notes, and snippets.

@kosek
Created November 13, 2014 15:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kosek/f3eb6bf5e78e2d4ecb7e to your computer and use it in GitHub Desktop.
Save kosek/f3eb6bf5e78e2d4ecb7e to your computer and use it in GitHub Desktop.
<xsl:template match="text()">
<xsl:analyze-string select="." regex="\p{{Ll}}+">
<xsl:matching-substring>
<fo:inline font-size="70%"><xsl:value-of select="upper-case(.)"/></fo:inline>
</xsl:matching-substring>
<xsl:non-matching-substring>
<xsl:value-of select="."/>
</xsl:non-matching-substring>
</xsl:analyze-string>
</xsl:template>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment