[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: RE: Setting the draft.watermark.image parameter value
Parameters can contain all kinds of
interesting things. For example, you might do something like this: <xsl:parameter name=”draft.watermark.image”> <xsl:choose> <xsl:when test=”//imagedata[@role
= ‘watermark’]”><xsl:value-of select=”//imagedata[@role
= ‘watermark’]/@fileref”/></xsl:when> <xsl:otherwise>path/to/default/watermark.png</xsl:otherwise> </xsl:choose> </xsl:parameter> David From: Jeff Hooker
[mailto:Jeff_Hooker@pmc-sierra.com] Hi all, I'm trying to allow my users to set their
own watermark simply by defining an image labeled "watermark" within
their document. This means I need to set the value of the
draft.watermark.image value dynamically. This is a little difficult because, as
far as I can tell, the parameter value needs to be set before the
target file is processed (makes sense, just inconvienent at the moment). Is
there any boilerplate way of getting around this? Thanks, Jeff |
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]