I am writing a XSL transformation and my source has an element like this – “title”. The target xml should contain “Title”. Is there a way to capitalize the first letter of a string in XSL?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Following on from the Johannes said, to create a new element using xsl:element you would probably do something like this
If your are using XSLT1.0, you won’t be able to use the upper-case function. Instead, you will have to make-do with the cumbersome translate function