Altova Mailing List Archives>Archive Index >microsoft.public.xsl Archive Home >Recent entries >Thread Prev - Detecting upper case >Thread Next - Re: Detecting upper case Re: Detecting upper caseTo: NULL Date: 7/11/2006 11:32:00 PM "FinallyInSeattle" <lori.pearsall7@g...> wrote in message news:1152570079.433737.295700@p...... > I have the situation where I have a document element that looks like > the following: > > <field key="DocumentLogicalType">Submission</field> > > I'd like to render "DocumentLogicalType" as "Document Logical Type" - > basically inserting a space whenever an upper case character is > encountered. How do I detect upper case (as opposed to a translation)? > > Thanks in advance! > Mukul's code well demonstrates the problems of implementing a 'procedure' in xsl. If all you have is a hammer everything looks like a nail. If you absolutely have to implement this in XSL then the solution works but if you have other choices then perhaps those choices would be better. A few of Ideas:- If your target processor is MSXML then embedding some script in the XSL that will handle this much more cleanly. MSXML and possibly others support adding objects to the processor to supply extended functions. Pre-process the XML adding an attribute contain your prefered display string or replace the value with you prefered string. Anthony. | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
