Can some body answer??? Somebody of gingerall ? or anyone?



--------------------------------------------------------------------------
2001 Jul 18 - 00 : 01
[EMAIL PROTECTED]
--------------------------------------------------------------------------
>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?
>

Reply via email to