[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Question for a code example of <xsl:evaluate> in
On 02.09.2019 22:55, Dimitre Novatchev dnovatchev@xxxxxxxxx wrote:
I need to call an existing xsl:function from within the xpath (target-expression ) attribute of <xsl:evaluate>.
<?xml version="1.0"?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="3.0" xmlns:my="http://www.example.com/my-functions" exclude-result-prefixes="my"> <!-- PURPOSE test xsl:evaluate with a literal argument calling a stylesheet function -->
<xsl:function name="my:f" visibility="public"> <xsl:sequence select="$p"/> </xsl:function> <xsl:param name="p" select="42"/> </xsl:stylesheet> for instance, runs fine for me within oXygen and Saxon 9.8 EE using the "main" template as the entry point.
|
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
|