[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: ext func

Subject: Re: ext func
From: "xmlhack ." <xmlhack@xxxxxxxxxxx>
Date: Wed, 18 Jul 2001 15:35:11 -0000
func
Shruti, I don't know if this will be of much help, or if it's what you're looking for but this is how we used a Java extension ...

At the beginning of the XSL:

<?xml version="1.0"?>
<xsl:stylesheet
	xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
	xmlns:lxslt="http://xml.apache.org/xslt"
	xmlns:testIndent="testExtensions"
	extension-element-prefixes="testIndent"
	version="1.0">
<lxslt:component prefix="testIndent" elements="init" functions="setIndent">
	 <lxslt:script lang="javaclass" src="testExtensions"/>
</lxslt:component>

<!--removed coding-->

<xsl:template match="poetry-line">
<div class="poetry-line">
<xsl:if test="@indent">
<xsl:value-of disable-output-escaping="yes" select="testIndent:setIndent(string(@indent))" />
</xsl:if>
<xsl:apply-templates /></div>
</xsl:template>


<!--removed coding-->

Hope this helps.
Mattio

From: "shruti" <shruti@xxxxxxxxxxxxxxxxx>
Reply-To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
To: <xsl-list@xxxxxxxxxxxxxxxxxxxxxx>
Subject:  ext func
Date: Mon, 18 Jun 2001 15:56:17 +0530

can somebody help me in using extension functions in xpath expressions.
it would be really helpful if i can get some examples on how to use
extension functions like tokenize, distinct  in xpath expressions...


thanx.. shruti


XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list



_________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com


XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list



Current Thread
  • Re: ext func
    • xmlhack . - Wed, 18 Jul 2001 11:40:25 -0400 (EDT) <=
      • Anis h - Wed, 18 Jul 2001 12:22:28 -0400 (EDT)

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.