Capitalize First Letter of All Words EXCEPT Conjunction (And, or, etc.)
Posted on 2006-04-13
Is there a way to capitalize the first letters of all words, excluding conjunctions and modifiers (grammatical elements) ?
For example, I have element tags like this:
<title>Objectives of the FINE DOCUMENT</title>
Currently I am using this:
<span style="text-transform: capitalize;">
<xsl:apply-templates select="child::title" mode="outIt"/>
However, this renders the title tag in an undesirable manner:
"Objectives Of The Fine Document" <= incorrect
This is ideally what I would like to have outputted:
"Objectives of the Fine Document" <= how do i achieve this?
Is this possible? I have scoured the web in search of an XSLT solution, to no avail.
Please help me! Thank you so much for any advice or guidance.