xsl-list
[Top] [All Lists]

RE: Standard Date/Time Publication Functions in XSL??

2005-08-02 15:41:38
Hi Michael,

David said the same thing...

Perhaps my syntax is just off?

I have it as: 
<xsl:value-of select="format-date($d, "[D1o] [MNn], [Y]", "en", (),
())"/>

And get this error in the local transform:

Description: F Element type "xsl:value-of" must be followed by either
attribute specifications, ">" or "/>".


    -------------------------
John Bruso
Web Developer
ph  307.674-6446-2608

  
        
 
 
 

-----Original Message-----
From: Michael Kay [mailto:mike(_at_)saxonica(_dot_)com] 
Sent: Tuesday, August 02, 2005 4:39 PM
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: RE: [xsl] Standard Date/Time Publication Functions in XSL??

Like all other functions, you can call this anywhere within an XPath
expression. Since the output is likely to be written straight to the
result
tree, it's most likely to be called in the select expression of
<xsl:value-of>.

Michael Kay
http://www.saxonica.com/ 

-----Original Message-----
From: Bruso, John [mailto:jbruso(_at_)SHERIDAN(_dot_)EDU] 
Sent: 02 August 2005 23:00
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: RE: [xsl] Standard Date/Time Publication Functions in XSL??

Michael,

Can elaborate on format-date()? 

I want to use this expression:

http://www.w3.org/TR/xslt20/#function-format-date

format-date($d, "[D1o] [MNn], [Y]", "en", (), ())

But I am unsure how to format it in the XSL.

<xsl:function name="format-date">
??
</xsl:function>

Thanks for the clarification.


John

    -------------------------
John Bruso
Web Developer
ph  307.674-6446-2608

  
      
 
 
 

-----Original Message-----
From: Michael Kay [mailto:mike(_at_)saxonica(_dot_)com] 
Sent: Tuesday, August 02, 2005 11:35 AM
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: RE: [xsl] Standard Date/Time Publication Functions in XSL??


Is there a way to publish the Date in XSL?

Like: Wednesday, July 23 2005


In XSLT 2.0: yes - format-date()

In XSLT 1.0: no, other than by use of extensions such as those at
www.exslt.org

Michael Kay
http://www.saxonica.com/



--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: 
<mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--


--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: 
<mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--





--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--


--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--