[prev in list] [next in list] [prev in thread] [next in thread]
List: mono-list
Subject: Re: [Mono-list] xsp + xml + TransformArgumentList
From: Atsushi Eno <atsushi () ximian ! com>
Date: 2005-09-15 7:48:18
Message-ID: 1126770499.9141.16.camel () linux ! site
[Download RAW message or body]
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
_______________________________________________
Mono-list maillist - Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic