FPI_DEVTEAM
asked on
How do i convert to uppercase in XSLT using sharepoint designer
I have a transformation in XSLT by which I am trying to convert the default display of the file type of an uploaded document from lower case to upper case.eg; pdf to PDF. How am I able to do this.
<xsl:value-of select="upper-case(@File_x 0020_Type) " disable-output-escaping="y es"/>
This gave me an error. Can you please help me in which function to use and how to use it. Thanks in advance.
<xsl:value-of select="upper-case(@File_x
This gave me an error. Can you please help me in which function to use and how to use it. Thanks in advance.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Maybe I was not clear enough.
You simply CAN'T use upper-case().
It is a non existent function in sharepoint XSLT as far as I know, it is XSLT2, so not supported in Sharepoint
If you want to upper-case, you need to use the workaround I have shown
You simply CAN'T use upper-case().
It is a non existent function in sharepoint XSLT as far as I know, it is XSLT2, so not supported in Sharepoint
If you want to upper-case, you need to use the workaround I have shown
maybe you want some references, stating the same
http://mosslabs.blogspot.com/2009/02/convert-value-to-uppercase-or-lower.html
http://blog.tallan.com/2008/10/22/convert-xslt-variables-to-upper-or-lower-case/
http://stackoverflow.com/questions/586231/how-can-i-convert-a-string-to-upper-or-lower-case-with-xslt
since they are at least about two years old,
I found you a reference of a guy building an uppercase template for his library in SS2010
http://spxslt.codeplex.com/wikipage?title=ToUpper&referringTitle=Documentation
doing the same
so the issue still exist
http://mosslabs.blogspot.com/2009/02/convert-value-to-uppercase-or-lower.html
http://blog.tallan.com/2008/10/22/convert-xslt-variables-to-upper-or-lower-case/
http://stackoverflow.com/questions/586231/how-can-i-convert-a-string-to-upper-or-lower-case-with-xslt
since they are at least about two years old,
I found you a reference of a guy building an uppercase template for his library in SS2010
http://spxslt.codeplex.com/wikipage?title=ToUpper&referringTitle=Documentation
doing the same
so the issue still exist
ASKER