Subject: Re: [xsl] randomly selecting a node from a node set From: Graydon <graydon@xxxxxxxxx> Date: Sun, 6 Jan 2013 14:31:32 -0500 |
On Sun, Jan 06, 2013 at 01:33:15AM +0100, Imsieke, Gerrit, le-tex scripsit: > With Saxon-PE or -EE, you can use the following EXSLT functions out > of the box: > > <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" > xmlns:xs="http://www.w3.org/2001/XMLSchema" > xmlns:random="http://exslt.org/random" > xmlns:math="http://exslt.org/math" > exclude-result-prefixes="xs" > version="2.0"> > <xsl:output method="text"/> > <xsl:template name="main"> > math:random: <xsl:sequence select="math:random()"/> > random:random-sequence: <xsl:sequence > select="random:random-sequence(3)"/> > </xsl:template> > </xsl:stylesheet> So I can! Thank you; that will solve the problem. -- Graydon
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] randomly selecting a node, Imsieke, Gerrit, le- | Thread | Re: [xsl] randomly selecting a node, G. Ken Holman |
Re: [xsl] randomly selecting a node, Graydon | Date | Re: [xsl] randomly selecting a node, Graydon |
Month |