Calling a function in XSLT
问题 I try to run one of the functions which are linked bellow in my own stylesheet. But I dont know how. Here is an xsltransform.net demo . And here are the functions I want to run: func 1 func 2 回答1: Assuming an XSLT 2.0 processor like Saxon 9 you can use xsl:function as follows: <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="2.0" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:func="http://example.com/mf"> <xsl:output method="html" indent="yes"/> <xsl:strip-space