Subject: LotusXSL_0_19_2 problem -- Call to extension function failed From: James Garriss <jgarriss@xxxxxxxxx> Date: Fri, 21 Jan 2000 15:55:30 -0500 |
<?xml version="1.0"?> <books> <book> <author>James</author> </book> <book> <author>James</author> </book> <book> <author>Jasen</author> </book> </books>
<?xml version="1.0"?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:lxslt="http://xml.apache.org.xslt" xmlns:extn1="http://dev.mitre.org/" extension-element-prefixes="extn1" version="1.0">
<xsl:output method="html" indent="yes"/> <xsl:strip-space elements="*"/>
<xsl:template match="/"> <HTML> <BODY> <H1>Books</H1> <xsl:apply-templates/> </BODY> </HTML> </xsl:template>
<xsl:template match="book"> <xsl:if test="extn1:fcnTestFilter(string(.)) = 'unique'"> <xsl:text>Found James</xsl:text> </xsl:if> </xsl:template>
<lxslt:component prefix="extn1" functions="fcnTestFilter"> <lxslt:script lang="javascript">
var strPrevFilter = ""; // previously displayed item in filter
// compares current filter with previous filter; if unique it returns "unique" function fcnTestFilter(strNewFilter) { if (strNewFilter != strPrevFilter) { strPrevFilter = strNewFilter; return "unique"; } return strPrevFilter; }
</lxslt:script> </lxslt:component>
========= Parsing file:D:/My Documents/lotusxsl/extn/bar.xsl ========= Parse of file:D:/My Documents/lotusxsl/extn/bar.xsl took 2172 milliseconds ========= Parsing foo.xml ========= Parse of foo.xml took 187 milliseconds ====================== Transforming... Call to extension function failed: White space is required between the public identifier and the system identifier. Call to extension function failed: White space is required between the public identifier and the system identifier. Call to extension function failed: White space is required between the public identifier and the system identifier.
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: XSL Editor/ LotusXSL Updates, Pawson, David | Thread | Re: LotusXSL_0_19_2 problem -- Call, Scott Boag/CAM/Lotus |
Re: JavaScript problem, Seema Ramanathan | Date | [no subject], jeffrod |
Month |