[Mono-list] xsp + xml + TransformArgumentList

Atsushi Eno atsushi at ximian.com
Thu Sep 15 03:48:18 EDT 2005


Hello,

> 		XslTransform trans = new XslTransform();
> 		trans.Load(Server.MapPath("guide.xsl"));
> 
>          	XsltArgumentList args = new XsltArgumentList();
> 		args.AddParam("qload", "", "form/question[@id='1.1']");

Here you pass a string (not a node-set) as the overriden parameter,
and...

> guide.xsl----------------------
> 
> <xsl:stylesheet version="1.0"
> xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
> <xsl:param name="qload" select="form/question[@id='1.1']"/>
> <xsl:template match="/">
>    <table height="100%" width="100%">
>       <tr>
>          <td valign="top">
> 	    <xsl:value-of select="$qload/text"/>

... since this expression expects that $qload is a node-set,
it should fail.

>    	 </td>
>       </tr>
>    </table>
> </xsl:template>
> </xsl:stylesheet>

Atsushi Eno




More information about the Mono-list mailing list