RE: [xsl] design question on function namespaces

Subject: RE: [xsl] design question on function namespaces
From: "Pawson, David" <David.Pawson@xxxxxxxxxxx>
Date: Wed, 4 May 2005 09:51:03 +0100
    -----Original Message-----
    From: Michael Kay [mailto:mike@xxxxxxxxxxxx] 
    Sent: 04 May 2005 09:05
    To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
    Subject: RE: [xsl] design question on function namespaces
    
    >     
    >     <xsl:template match="open-office:chapter" 
    >     mode="doc:chapter-has-footnotes"
    >     as="xs:boolean">
    >       <xsl:sequence select="exists(.//footnote)"/> </xsl:template>
    > 
    > 1. Return the boolean value to whom | what?
    > 
    
    To its caller. For example,
    
    <xsl:variable name="x" as="xs:boolean">
      <xsl:apply-templates select="chap" 
    mode="doc:has-footnotes"/> </xsl:variable>
    
    If the call on apply-templates returns a boolean, that 
    boolean will be the value of variable $x.
Thanks for the explanation Michael.
Now that is a change!
  How  did she get that through the WG?
Seems to be duplicating the function example you provided?

Dual use templates? Give the template a name and it becomes
a triple use template?

Was any use case provided? The function example seems far clearer.

regards DaveP
  


-- 
DISCLAIMER:

NOTICE: The information contained in this email and any attachments is 
confidential and may be privileged.  If you are not the intended 
recipient you should not use, disclose, distribute or copy any of the 
content of it or of any attachment; you are requested to notify the 
sender immediately of your receipt of the email and then to delete it 
and any attachments from your system.

RNIB endeavours to ensure that emails and any attachments generated by
its staff are free from viruses or other contaminants.  However, it 
cannot accept any responsibility for any  such which are transmitted.
We therefore recommend you scan all attachments.

Please note that the statements and views expressed in this email and 
any attachments are those of the author and do not necessarily represent
those of RNIB.

RNIB Registered Charity Number: 226227

Website: http://www.rnib.org.uk

Current Thread