Re: No more parameter ports

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 10/08/2013 10:44 AM, Norman Walsh wrote:
...
> Not inventing a new mechanism would mean that p:with-param would
> still exist but parameter ports would not. Consider this pipeline:
> 
> <p:declare-step name="main"> <p:input port="source"/> <p:output
> port="result"/> <p:option name="page-size" select="'A4'"/>
> 
> <p:xslt> <p:input port="stylesheet"> <p:document
> href="style.xsl"/> </p:input> <p:with-param name="page-size"
> select="$page-size"/> <p:with-param name="style"
> select="'draft'"/> </p:xslt> </p:declare-step>
> 
> Without parameter ports that would be valid (no more stupid
> warnings about unbound parameter input ports, thank you very
> much!)
> 
> The pipeline caller could change the value of the 'page-size' 
> parameter by passing in the page-size option to the pipeline. They 
> could not change the value of the 'style' parameter or pass in any 
> other parameters.

Would you have to specifiy every parameter in the pipeline that could
be passed in to the step? Would you also have to specify a defaut
value for it? Thinking of the DocBook xslts, which have many params
with sensible defaults set, you don't want to HAVE to repeat the full
list of allowed params and their defaults in the xpl. I suppose you
could generate part of your pipeline from your xslts, but that's just
moving the work and complexity to another place.

Regards,
David
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQEcBAEBAgAGBQJSVCvhAAoJEMHeSXG7afUhd44H/2+vrBsYv+MZEcJ696+gx6L5
/GnqzQtRl7HJ8wdlUDIsAmVSN43CrdiMMl+AlPFBonLnB0WOgVWLWxjQiPAU0GqJ
kSwHv16PBhp9H38kVwcmgeh1KCHs+GcvVv3nbLn9xpnm7q4ZwdhCCvwFVCkr5dHa
E/cdjGhwXPXplczz8WT+0dmouu8gRbdVCh+xa8SRFj6FlvDj+fX8v4JCC6btA9X5
mxOUCQcIH0UdJc8NrnRy1SYPgyPpGfti9bfbDUVqv8OFB6I70nVuITFYEGKIis3x
fARLz60sNIhRYDUnT72R0skETp43pai93m1viClxn3x+Wv7eM2PjliHu91DdCD0=
=pWfF
-----END PGP SIGNATURE-----

Received on Tuesday, 8 October 2013 16:00:06 UTC