Re: XSLT 4: map serialization

"Michael Kay [email protected]" <[email protected]> Wed, 25 Nov 2020 14:48:55 -0000
Newsgroups gmane.text.xml.xsl.general.mulberrytech
Message-ID <[email protected]>
> 
> let $makeElement := function($k, $v) {
>   parse-xml('<' || $k ||  '>' || $v || '</' || $k || '>' )
>   }
>      return $makeElement('month', 'August')
> 
> There is nothing to be escaped in the above expression! This is XPath, not XML.

Well, $makeElement('menu', 'bangers&mash') is going to fail.
> 

Michael Kay
Saxonica
--~----------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
EasyUnsubscribe: http://lists.mulberrytech.com/unsub/xsl-list/3329386
or by email: [email protected]
--~--