- From: Dan Connolly <connolly@w3.org>
 - Date: Fri, 12 Nov 2004 19:49:06 -0600
 - To: TimHare@comcast.net
 - Cc: www-rdf-calendar@w3.org
 
On Nov 10, 2004, at 3:31 PM, TimHare@comcast.net wrote:
>  Hi Dan  - as author of the draft, it's great to see the ideas used.
Yeah; in standards work, the sincerest form of flattery is 
implementation. ;-)
>  I followed the link to "tocal.xsl", to look at your XSLT. 
>
>  I noticed that you are not creating the CR-LF string in the emit-text 
> template;
No? I'm using your code:
<!-- ACK: lifed directly from draft-hare-xcalendar-01  -->
<xsl:template name="emit_text">
   <xsl:param name="limit" select="number(75)"/> <!-- default limit is 
75 " -->
   <xsl:param name="line"/>
   <xsl:value-of select="substring(normalize-space($line),1,$limit)" />
   <!-- Output the newline string -->
   <xsl:text>
</xsl:text>
...
and it seems to work here:
$ xsltproc toIcal.xsl test/spec01-conf3.rdf
BEGIN:Vcalendar
prodid:
...
description:
  Networld+Interop Conference and Exhibit\nAtlanta World Congress 
Center\n At
  lanta, Georgia
END:Vevent
>  may I ask why?
Version skew? The run above was using:
$ ident toIcal.xsl
toIcal.xsl:
      $Id: toIcal.xsl,v 1.4 2004/11/10 06:50:28 connolly Exp $
>  I'm not sure I follow the code which calls the 'replace-string' 
> template - can you explain it a little bit more?
Did you see the reference to rfc2445#sec4.3.11 in the comment?
It implements writing newlines as "\n" per
http://www.w3.org/2002/12/cal/rfc2445#sec4.3.11
-- 
Dan Connolly, W3C http://www.w3.org/People/Connolly/
Received on Saturday, 13 November 2004 01:49:07 UTC