![]() |
![]() | ![]() | ![]() | Altova Mailing List Archives>Archive Index >microsoft.public.xsl Archive Home >Recent entries >Thread Prev - Need correct xsl syntax for single quote parameter [Thread Next] Re: Need correct xsl syntax for single quote parameterTo: NULL Date: 7/1/2004 12:59:00 PM DotNetJunkies User wrote:
> I have an xsl file that creats an aspx page with a datagrid. Within
> the datagrid, I bing columns from a table using:
>
> <asp:Label id="lblTitle" runat="server" text='<%#
> Container.DataItem("Title")%>' CssClass="accountsignuperror">
>
> in my xsl file, i don't know the correct syntax to generate the text
> parameter above. If I use the <xsl:attribute> tag, I get double
> quotes around the whole statement and the page does not work. Any
> help would be appreciated.
As ASP.NET syntax isn't XML syntax, you better generate tough parts as text:
<xsl:text disable-output-escaping="yes">
<asp:Label id="lblTitle" runat="server" text='<%#
Container.DataItem("</xsl:text>
<xsl:value-of select="'Title'"/>
<xsl:text disable-output-escaping="yes">")%>'
CssClass="accountsignuperror"></xsl:text>
</xsl:template>
--
Oleg Tkachenko [XML MVP]
http://blog.tkachenko.com
| ![]() | ![]() | ![]() |
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | |||||
|
