Click here to Skip to main content
15,909,827 members
Home / Discussions / XML / XSL
   

XML / XSL

 
AnswerRe: How Many Root Nodes? Pin
DavidNohejl18-Sep-05 14:48
DavidNohejl18-Sep-05 14:48 
QuestionIXMLDOMDocument Save Method Pin
Edward Abrahim6-Sep-05 10:30
Edward Abrahim6-Sep-05 10:30 
Questionwhat's xml payload? Pin
HeartFriend3-Sep-05 1:08
HeartFriend3-Sep-05 1:08 
AnswerRe: what's xml payload? Pin
Christian Graus6-Sep-05 13:13
protectorChristian Graus6-Sep-05 13:13 
QuestionHow to Display Data in DataGrid Pin
Chetan Ranpariya2-Sep-05 1:37
Chetan Ranpariya2-Sep-05 1:37 
AnswerRe: How to Display Data in DataGrid Pin
softty2-Sep-05 8:24
softty2-Sep-05 8:24 
GeneralRe: How to Display Data in DataGrid Pin
Chetan Ranpariya2-Sep-05 17:10
Chetan Ranpariya2-Sep-05 17:10 
QuestionXSL data pre-processing Pin
Vitaly Tomilov1-Sep-05 23:42
Vitaly Tomilov1-Sep-05 23:42 
In my ASP.NET application I read a table from the database, and then translate it into HTML via XSL file. The problem is that some columns in my table contain raw data that need to be processed before displayed. For some columns i could do it within XSL like shown below:

For the image column:

<xsl:element name="img">
<xsl:attribute name="src">
ShowImage.aspx?id=<xsl:value-of select="UserNumber"></xsl:value-of>
</xsl:attribute>
<xsl:attribute name="width">
137
</xsl:attribute>
<xsl:attribute name="height">
150
</xsl:attribute>
<xsl:attribute name="alt">
<xsl:text>None</xsl:text>
</xsl:attribute>
</xsl:element>

For the boolean column:

<xsl:choose>
<xsl:when test="Enabled=1">
<xsl:text>Yes</xsl:text>
</xsl:when>
<xsl:otherwise>
No
</xsl:otherwise>
</xsl:choose>

Now, the question is: How do i do a similar pre-processing, but for some complex binary columns that come as an integer, and via complex transformation must become text?
Is there like a way to do data decoding right in XSL? Or should I intercept XSL processing somehow when i'm calling method Transform of class XslTransform?
QuestionSVG: Manipulation with text length and size Pin
Adry131-Aug-05 23:54
sussAdry131-Aug-05 23:54 
AnswerRe: SVG: Manipulation with text length and size Pin
Adry11-Sep-05 0:01
sussAdry11-Sep-05 0:01 
QuestionCDATA Pin
Anonymous31-Aug-05 12:31
Anonymous31-Aug-05 12:31 
Question.removing empty elements Pin
ruud ortmans30-Aug-05 23:28
ruud ortmans30-Aug-05 23:28 
AnswerRe: .removing empty elements Pin
softty31-Aug-05 7:54
softty31-Aug-05 7:54 
GeneralRe: .removing empty elements Pin
ruud ortmans1-Sep-05 9:34
ruud ortmans1-Sep-05 9:34 
QuestionSend Request SOAP Envelope Pin
Donnylies30-Aug-05 22:08
Donnylies30-Aug-05 22:08 
Questionhow to write a xml data reduced file? Pin
HeartFriend30-Aug-05 2:33
HeartFriend30-Aug-05 2:33 
AnswerRe: how to write a xml data reduced file? Pin
softty31-Aug-05 7:57
softty31-Aug-05 7:57 
Questionhow to use xml schema in c++ programming? Pin
HeartFriend29-Aug-05 18:24
HeartFriend29-Aug-05 18:24 
QuestionXSD:TIME and .NET Pin
Timothy_198229-Aug-05 3:48
Timothy_198229-Aug-05 3:48 
Questionxsd:time XML - .NET Pin
Anonymous29-Aug-05 3:44
Anonymous29-Aug-05 3:44 
QuestionMSXML DOM help Pin
johnnyXP27-Aug-05 3:07
johnnyXP27-Aug-05 3:07 
QuestionProblem loading XML Pin
rscr26-Aug-05 3:55
rscr26-Aug-05 3:55 
NewsA very simple problem with XML Pin
benqazou26-Aug-05 2:34
benqazou26-Aug-05 2:34 
AnswerRe: A very simple problem with XML Pin
DavidNohejl26-Aug-05 3:07
DavidNohejl26-Aug-05 3:07 
GeneralRe: A very simple problem with XML Pin
benqazou26-Aug-05 5:11
benqazou26-Aug-05 5:11 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.