I keep looking, but can't find an XSL function that is the equivalent of "normalize-space", for characters. That is, my content has accented UNICODE characters, which is great, but from that content, I'm creating a filename, where I don't want those accents.
So, is there something that I'm overlooking, or not googling properly, to easily process characters?
In the XML data:
<filename>gri_gonéwiththèw00mitc</filename>
In XSLT stylesheet:
<xsl:variable name="file">
<xsl:value-of select="filename"/>
</xsl:variable>
<xsl:value-of select="$file"/>
results in "gri_gonéwiththèw00mitc"
where
<xsl:value-of select='replace( normalize-unicode( "$file", "NFKD" ), "[^\\p{ASCII}]", "" )'/>
results in nothing.
What I'm aiming for is gri_gonewiththew00mitc
(no accents)
Am I using the syntax wrong?