15,920,596 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by ssssyyy (Top 12 by date)
ssssyyy
5-Nov-10 10:10am
View
When I look at the html source, it looks like last td which has 1. has style empty.
<table><tr><td align="left"></td><td>
</td><td align="left"></td><td>Font-size: 8pt; Font-weight: Bold;</td></tr></table></td></tr><tr><td><table><tr><td><div><table width="100%" cellspacing="0" cellpadding="0"><tr><td valign="top" width="1%" noWrap="yes" style="">1.</td><td align="left" width="99%" class="tdNumCls">
ssssyyy
5-Nov-10 9:58am
View
When i debugged to see what's getting out of @QuestionIndexFont to the XSLT and value seems to be looking and fine and @QuestionIndexFont looks like below
FONT-SIZE: 8pt ; FONT-FAMILY:Arial; FONT-WEIGHT:Bold;
Is it any thing wrong. but, still the way you suggested not working .
ssssyyy
4-Nov-10 22:59pm
View
Yes, exactly your right.
I tried the way you suggested. But, @QuestionIndexFont is not taking the Font style that was assigned through the XML attribute document.
ssssyyy
4-Nov-10 14:39pm
View
Please see code in answer 3
ssssyyy
4-Nov-10 13:10pm
View
Can you send me you email address. I can send you the code.
Thanks.
ssssyyy
4-Nov-10 12:37pm
View
Actually in the table xslt tr td looks like below. Do you know how to have dynamic style on td
<tr>
<td valign="top" width="1%" noWrap="yes" > <xsl:if test="@Type!='INS' and @Type!='MAT'">
<xsl:if test="../../@Underline='True'">__
<xsl:if test="../../@Number='True'">
<xsl:value-of select="$QuestionIndex+1">
</td>
ssssyyy
4-Nov-10 11:57am
View
My td in the xslt looks like this
<td valign="top" width="1%" noWrap="yes">
<xsl:attribute name="style">
<xsl:value-of select="$xyz">
<xsl:if>
<xsl:if>
<xsl:if>
<xsl:value-of select="$xyz+1">.
</td>
ssssyyy
4-Nov-10 11:54am
View
.net xml attribute. Thanks.
ssssyyy
3-Nov-10 22:34pm
View
XML attribute in xslt is defined as @QuestionIndexFont
<table style="margin-top:10px" align="left" width="100%" cellspacing="0" cellpadding="0">
<tr>
<td>
<table align="left" name="matchSubStem" cellspacing="0" cellpadding="0">
<xsl:call-template name="printSubStem">
<xsl:with-param name="siblings" select="following-sibling::Question">
<xsl:with-param name="index" select="$QuestionIndex+1">
</table>
<xsl:attribute name="style">
<xsl:value-of select="@QuestionIndexFont">
</td>
<td style="width:30px"></td>
<td>
<xsl:value-of select="Choices/text()" disable-output-escaping="yes">
</td>
</tr>
</table>
ssssyyy
3-Nov-10 21:47pm
View
yes, i have at sign defined as XML attribute and assigned value to it. Now, i'm trying to access the assigned value in xslt. which is not working the way you suggest.
ssssyyy
3-Nov-10 21:42pm
View
I tried with @ in place of $. But, still not working with both the code. Any sugestions ?
ssssyyy
3-Nov-10 21:14pm
View
Can I do this ?
<td>
<xsl:attribute name="style">
<xsl:value-of select="" "@somestylevariable"="">
</td>
Show More