Thanks for the feedback.
I'm doing XML-to-XML transformations with Saxon and the documents contain HTML fragments.
The HTML fragments need to be included in the result documents with HTML tags escaped.
The extension function was written to take an XPath sequence as argument and return it as a string.
HTMLEmitter is used as a receiver in the ComplexContentOutputter.
I'm a novice with Saxon so, if there's a better way to do this any pointers would be appreciated.
From: Michael Kay [email@example.com]
Sent: Thursday, May 27, 2010 15:44
To: 'Mailing list for the SAXON XSLT and XQuery processor'
Subject: Re: [saxon] Parsing XPath sequences in extension function
You can certainly do this, but I'm not sure why you would want to. You haven't actually said what you want your extension function to do, so I can't tell
you whether this is the right way to do it.