Subject: Re: [xsl] xsl:function From: Abel Braaksma <abel.online@xxxxxxxxx> Date: Wed, 12 Sep 2007 09:18:47 +0200 |
Cheers, -- Abel Braaksma
What shud I do I m not using saxon and I m not running in cmd prompt. I hv just written XSL code in text file and saved it as .xsl and directly opening XML in browser. I really donno wat processor it is. Shud I install sum processor(s/w). SAXON? I m just cing the results in IE not cmd prompt. If I download saxon as u suggested can I get the results in browser? And how shud I run that?
-----Original Message-----
From: Abel Braaksma [mailto:abel.online@xxxxxxxxx] Sent: Wednesday, September 12, 2007 12:30 PM
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject: Re: [xsl] xsl:function
I just completed your code bit and changed the obvious xsl:result error into xsl:value-of. But that was not the error you got. I ran it, and it put out "2".
<?xml version='1.0' encoding='utf-8' ?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="2.0" xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:my="http://whatever" exclude-result-prefixes="my">
<xsl:function name="my:one">
<xsl:param name="a"/>
<xsl:param name="b"/>
<xsl:value-of select="$a+$b"/>
</xsl:function>
<xsl:template match="/">
<xsl:value-of select="my:one(1,1)"/>
</xsl:template>
</xsl:stylesheet>
What I think is that you accidentally ran an XSLT 2.0 stylesheet with an
XSLT 1.0 processor (which should already complain about the xsl:function
instruction, but perhaps first throws an error about the extension functions not being known. Saxon for instance says there's no known java
function).
Cheers, -- Abel Braaksma
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] xsl:function, Karanam.Chowdary | Thread | Re: [xsl] xsl:function, bryan rasmussen |
Re: [xsl] Connecting to Data Base u, bryan rasmussen | Date | Re: [xsl] xsl:function, bryan rasmussen |
Month |