xsl-list
[Top] [All Lists]

Re: [xsl] XSLT 4: map serialization

2020-11-25 08:48:53

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/1167547
or by email: xsl-list-unsub(_at_)lists(_dot_)mulberrytech(_dot_)com
--~--
<Prev in Thread] Current Thread [Next in Thread>