W3C home > Mailing lists > Public > www-rdf-calendar@w3.org > November 2004

Re: toIcal.xsl -- progress on syntactic profile

From: Dan Connolly <connolly@w3.org>
Date: Fri, 12 Nov 2004 19:49:06 -0600
Message-Id: <34077C3C-3516-11D9-8A06-000D9338C596@w3.org>
Cc: www-rdf-calendar@w3.org
To: TimHare@comcast.net

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 -->

and it seems to work here:

$ xsltproc toIcal.xsl test/spec01-conf3.rdf
  Networld+Interop Conference and Exhibit\nAtlanta World Congress 
Center\n At
  lanta, Georgia

>  may I ask why?

Version skew? The run above was using:

$ ident 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

Dan Connolly, W3C http://www.w3.org/People/Connolly/
Received on Saturday, 13 November 2004 01:49:07 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:43:49 UTC