开发者

Factory Pattern within XPath

开发者 https://www.devze.com 2023-02-17 00:59 出处:网络
I\'m trying to implement an XSL-Stylesheet that accesses a toString()-Method of a TextExtractor. The parser I\'m using is Saxon9HE.

I'm trying to implement an XSL-Stylesheet that accesses a toString()-Method of a TextExtractor. The parser I'm using is Saxon9HE.

Simpl开发者_JS百科e Classdiagram:

AbstractText
+toString() : String
Factory
+load(String uri) : AbstractText // Returns a instance of a subclass

Has anyone a clue how to call toString() within a xsl-file?

Thanks, John


You're talking about calling Java from XSLT, right? The rules for that depend on which XSLT processor you are using, which you haven't told us.

0

精彩评论

暂无评论...
验证码 换一张
取 消