Add Parentheses Around Each Numbered List Item - please HELP!
Posted on 2006-04-18
Is it feasible to add parentheses around numbered list items in XSLT?
I have a template that basically works like this for all ordered lists:
a. Some AA text
b. Some BB text
c. Some CC text
The XSLT that handles this looks like this:
Now, however, there have been requests to envelope the numbered list items within parentheses, and to remove the trailing periods after the letter, so that the ordered list looks like this:
(a) Some AA text
(b) Some BB text
(c) Some CC text
I've surfed the web for hours in the hopes of finding a way to resolve this issue, to no avail.
Is this impossible? I made some fruitless attempts to put "(" and ")" characters around the <li> tags, and tried to hardcode it in using a pseudo-counter to count the list items and then output the counter values, but none of my resolutions have worked.
I am tearing my hair out because I assumed this would be relatively trivial to do yet I am at a complete and total loss...
Any advice or guidance is greatly appreciated!
Please help me!