[daisy] Email Page

Karel Vervaeke karel at outerthought.org
Thu Mar 27 15:46:20 CET 2008


Have a look at these pages about skinning and document styling:
http://cocoondev.org/daisydocs-2_2/374-cd/g1/26-cd.html
http://cocoondev.org/daisydocs-2_2/374-cd/25-cd/190-cd.html

Almost everything that you need (server name, uri, document info, ...)
is in there.

To encode the url, you should add
xmlns:urlencoder="xalan://java.net.URLEncoder" to the xsl:stylesheet
element and use this:

<xsl:variable name="uri" select="urlencoder:encode(concat(...))"/>

HTH,
Karel

On Thu, 2008-03-27 at 10:25 -0400, Sieranski, Greg wrote:
> Karel Vervaeke wrote:
> > Depends on what you mean by 'emailing the page'.  The easiest to
> > implement is to have mailto: links on the page (see [0] for an example).
> >
> > Other implementations where a mail with html content or with a PDF
> > attachment is sent should probably use a small form for sending the
> > mail.  This would be quite a bit more work, especially if you are not
> > familiar with cocoon - see [1].
> >
> > Regards,
> > Karel
> >
> > [0]
> > http://vlerick.be/en/programmes/managprog/1824-VLK/292-VLK.html#dsy292-VLK_
> >
> > [1]
> > http://cocoondev.org/daisydocs-2_2/374-cd/60-cd.html
> > http://cocoondev.org/daisydocs-2_2/374-cd/60-cd/199-cd.html
> >
> > On Thu, 2008-03-27 at 08:40 -0400, Sieranski, Greg wrote:
> >   
> >> I am looking to allow users to click on a button that will allow them to 
> >> email the page they are on. I was just looking for some thoughts on how 
> >> best to handle this. Does daisy internally keep track of where it is and 
> >> if so is there a way I can leverage it?
> >>
> >>
> >> Thanks,
> >> Greg Sieranski
> >> _______________________________________________
> >> daisy community mailing list
> >> Professional Daisy support: http://outerthought.org/en/services/daisy/support.html
> >> mail to: daisy at lists.cocoondev.org
> >> list information: http://lists.cocoondev.org/mailman/listinfo/daisy
> >>     
> > _______________________________________________
> > daisy community mailing list
> > Professional Daisy support: http://outerthought.org/en/services/daisy/support.html
> > mail to: daisy at lists.cocoondev.org
> > list information: http://lists.cocoondev.org/mailman/listinfo/daisy
> >   
> sorry for not being more clear. I would like it have a mailto with the 
> url of the current page. Basically the same thing that "send to a 
> friend" does in the [0] link you have provided. I am wondering if there 
> are some daisy variables that know the current site link and I can just 
> add them to my xsl.
> 
> Thanks,
> Greg Sieranski
> _______________________________________________
> daisy community mailing list
> Professional Daisy support: http://outerthought.org/en/services/daisy/support.html
> mail to: daisy at lists.cocoondev.org
> list information: http://lists.cocoondev.org/mailman/listinfo/daisy


More information about the daisy mailing list