Calling Java Methods in XSLT

Himanshu Yadav

Trying to generat a random number with the help of Java UUID class.

<xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xs="http://www.w3.org/2001/XMLSchema"
  exclude-result-prefixes="xs" xmlns:uuid="java:java.util.UUID">
<xsl:template match="/">
<xsl:variable name="uid" select="uuid:randomUUID()"/>
<ClientPK><xsl:value-of select="$uid"/></ClientPK>

Error

Cannot find a matching 0-argument function named {java:java.util.UUID}randomUUID().
  Note that direct calls to Java methods are not available under Saxon-HE
Martin Honnen

See http://saxonica.com/documentation/index.html#!extensibility, if you want to use Saxon 9 and have that feature (called reflexive extension functions) you need a license for PE or EE.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

XPages - Calling Java methods

From Dev

Calling the methods in java

From Java

Calling multiple methods in Java

From Java

Calling the methods in a class in Java

From Dev

Calling methods on objects Java

From Dev

XSLT processor to call Java methods

From Java

Calling methods on string literals (Java)

From Java

Calling methods of "parent" component in Java

From Java

Calling two Java methods asynchronously

From Dev

Calling Java methods with React locally

From Java

calling java methods in javascript code

From Dev

Calling methods in a Java Fx ActionEvent

From Dev

Generics in Java preventing calling of methods

From Dev

Calling methods for my java class

From Dev

Clojure: calling a sequence of methods on a Java object

From Java

Java: Printing triangles and spaces by calling methods

From Dev

Programatically calling all methods in a Java class

From Dev

Compiler error with calling Generic methods java

From Dev

Calling methods of a Java subclass using Jython

From Java

Calling Java Methods from Shell Scripts

From Dev

calling objects from other methods in java

From Dev

Using variables for creating objects and calling methods in Java

From Dev

Calling Methods In Java - Hello World Example

From Dev

Java FXML calling methods on button clicks

From Dev

How to print a christmas tree in Java, by calling methods?

From Dev

Iterating over DOM Objects being returned by Java methods in XSLT

From Dev

How Variable of an Interface is Working in JAVA and Calling the Methods of Interface?

From Java

Java question (calling methods with parameters) using UnboundID LDAP SDK api

From Java

Why calling methods from container class instead of instances of it in Java

Related Related

HotTag

Archive