[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Is there a way to use character-map to do replace
On 19.03.2019 16:15, Christophe Marchand cmarchand@xxxxxxxxxx wrote:
I have a variable : <xsl:variable name="content" as="xs:string" select='EC'/> The serialize function from XPath 3 allows you to supply a character map but in XPath 3.1 map syntax serialize($content, map { 'method' : 'text', 'use-character-maps' : map { 'E' : 'oe', 'C' : 'ss' }}) I am currently not sure there is a way to reference a map in the stylesheet, other than perhaps using map:join(document('')/*/xsl:character-map[@name = 'cm']/xsl:output-character/map-entry(@character, @string)) instead of the hardcoded map { 'E' : 'oe', 'C' : 'ss' }}
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|