Re: FO->Area as XSLT extension function

On Tue, 2013-03-19 at 21:01 -0300, Arved Sandstrom wrote:
> On 03/19/2013 10:46 AM, Jirka Kosek wrote:
[...]
> > http://saxonica.com/documentation/extensibility/integratedfunctions.xml
> >
> Maybe I'm missing something here, but how do you call one of these 
> integration functions from a stylesheet, 

http://saxonica.com/documentation/extensibility/integratedfunctions/ext-full-J.xml
has an example using XQuery -
   declare namespace eg="http://example.com/saxon-extension";
   for $i in 1 to 10 return eg:shift-left(2, $i)"

In XSLT you might use <xsl:value-of select="my:sock-count() div 2" />

In other words the function is available anywhere you could use an XPath
expresion.

Liam

-- 
Liam Quin - XML Activity Lead, W3C, http://www.w3.org/People/Quin/
Pictures from old books: http://fromoldbooks.org/
Ankh: irc.sorcery.net irc.gnome.org freenode/#xml

Received on Wednesday, 20 March 2013 00:42:30 UTC