[daisy] making URL out of field

Karel Vervaeke karel at outerthought.org
Wed Jul 9 09:07:20 CEST 2008


If I understand your question correctly, you need to create a
document-styling for your custom document type (see the documentation
for that)

To generate the url, do something like this:

<xsl:variable name="myField"
select="d:fields/d:field[@name='MyField']"/>

<a href="concat('http://example.com/foo/bar/', $myField/@valueFormatted)">click here</a>

(or replace 'click here' with an xsl:value-of select="$myfield/@valueFormatted")

HTH,
Karel

On Tue, 2008-07-08 at 11:42 -0700, Todd Wells wrote:
> I have a custom document  type with several text fields.   I would
> like to make a link in the document using the value in a text field as
> part of the URL.
> 
>  
> 
> What is the best way to approach this?  
> 
> 
> _______________________________________________
> 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