Subject: Re: [xsl] Custom function in template match predicate From: Wendell Piez <wapiez@xxxxxxxxxxxxxxxx> Date: Tue, 23 Sep 2008 13:51:08 -0400 |
<xsl:function name="my:test" as="xs:boolean"> <xsl:param name="fmtcode"/> <xsl:param name="context"/> <xsl:sequence select="(substring-after($context/@format,':') = $fmtcode) and (namespace-uri-for-prefix(substring-before($context/@format,':'),$context) = 'http://example.com/schemas/formats' )/> </xsl:function>
Cheers, Wendell
====================================================================== Wendell Piez mailto:wapiez@xxxxxxxxxxxxxxxx Mulberry Technologies, Inc. http://www.mulberrytech.com 17 West Jefferson Street Direct Phone: 301/315-9635 Suite 207 Phone: 301/315-9631 Rockville, MD 20850 Fax: 301/315-8285 ---------------------------------------------------------------------- Mulberry Technologies: A Consultancy Specializing in SGML and XML ======================================================================
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Custom function in templa, Florent Georges | Thread | Re: [xsl] Custom function in templa, Ian Stokes-Rees |
Re: [xsl] Custom function in templa, Florent Georges | Date | Re: [xsl] Custom function in templa, Ian Stokes-Rees |
Month |