We have had a deadline of half year lasting project yesterday; it was a pretty busy
day. We can't guarantee to answer or comment each post within 24 hours :)
To answer your (very interesting) mail:
1. Sablotron doesn't support any other namespaces right now. We are thinking about
extensions intensively (though 1.0 compliance is a higher priority) and to make
possible write functions in JS is exactly what we
want. Instead of inviting our own extensions, it seems to be much better to follow
existing ways such as e.g. lxslt.
2. Do you want to take part in Sablotron project? We are VERY interested. If you have
some idea what missing part you would like to help with, please e-mail it to
[EMAIL PROTECTED] Otherwise, we will contact
you with our suggestions.
Thanks,
Petr
[EMAIL PROTECTED] wrote:
> My mail its about 2 things the first one is to know if sablotron support other
>namespaces than xmlns:xsl="http://www.w3.org/1999/XSL/Transform" for example and
>particulary xmlns:lxslt="http://xml.apache.org/xslt".
> for what do i need it?
> its easy to create in this case a javascript function that can parce a XML here is a
>example of XSL that i want to use.
> the purpose of this is select a random record of a XML.
>
> <?xml version="1.0" encoding="iso-8859-1" ?>
>
> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
> xmlns:lxslt="http://xml.apache.org/xslt" xmlns:rand="getRandom"
> extension-element-prefixes="rand" version="1.0">
>
> <lxslt:component prefix="rand" functions="getRandom">
> <lxslt:script lang="javascript">
>
> function getRandom(MaxValue)
> {
> return (Math.round(Math.random() * (MaxValue))
> }
>
> </lxslt:script>
> </lxslt:component>
>
> <xsl:template match="brands">
> <xsl:processing-instruction
> name="cocoon-format">type="text/html"</xsl:processing-instruction>=20
>
> <html>
>
> <head>
>
> <title>Random</title>
>
> </head>
>
> <body>
>
> <xsl:variable name="total" select="count(car)" />
>
> There are <xsl:value-of select="$total" /> car brands in the list.<br
> /><br />
>
> <xsl:for-each select="car">
>
> <xsl:apply-templates select="." />
>
> <br />
>
> </xsl:for-each>
>
> <br />
>
> <xsl:variable name="random" select="rand:getRandom($total)" />
>
> Selected car brand number is:<xsl:value-of select="$random" />
>
> </body>
> </html>
> </xsl:template>
> </xsl:stylesheet>
>
> Thanks for the answer.
>
> My Seccond point is my offer to be sablotron developer for gingerall.
> are you interested?
--
Petr Cimprich
Ginger Alliance
www.gingerall.com