Click here to Skip to main content
15,886,919 members
Home / Discussions / XML / XSL
   

XML / XSL

 
QuestionSchema with Entity -- Validating Error Pin
xfun5563-Oct-07 3:08
xfun5563-Oct-07 3:08 
Questionxml serializer Pin
mukkanti0073-Oct-07 2:05
mukkanti0073-Oct-07 2:05 
AnswerRe: xml serializer Pin
Ilya Verbitskiy3-Oct-07 4:48
Ilya Verbitskiy3-Oct-07 4:48 
AnswerRe: xml serializer Pin
Dave Kreskowiak3-Oct-07 5:03
mveDave Kreskowiak3-Oct-07 5:03 
QuestionImage display problem Pin
SUDHAKAR PALLAM2-Oct-07 18:34
SUDHAKAR PALLAM2-Oct-07 18:34 
Questionsimple XPATH help Pin
eggie52-Oct-07 9:04
eggie52-Oct-07 9:04 
AnswerRe: simple XPATH help Pin
Scott Dorman2-Oct-07 16:45
professionalScott Dorman2-Oct-07 16:45 
QuestionUsing a custom Excel Sheet with XML code Pin
umakemesik2-Oct-07 6:14
umakemesik2-Oct-07 6:14 
Below is a sampling of my code. The code takes information from one program and list it all on an excel sheet. The problem is that the excel sheet is generic. Some of the information going into the excel sheet have different lengths of characters. How can i use this same code but instead of generating a generic excel sheet I could change the dircectory to point at a custom formatted excel sheet with all of the cells custom formatted.

thannks for any help.




<?xml version="1.0" encoding="UTF-8"?>

<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">

<!-- Output Design List as an comma seperated (csv) file. -->
<xsl:output method="text" encoding="iso-8859-1"/>

<xsl:template match="DESIGNLIST">
<xsl:for-each select="DESIGN">
<xsl:if test="position()=1">
<xsl:call-template name="DesignData">
<xsl:with-param name="HeaderRow" select="1"/>
</xsl:call-template>
</xsl:if>
<xsl:call-template name="DesignData">
<xsl:with-param name="HeaderRow" select="0"/>
</xsl:call-template>
</xsl:for-each>
</xsl:template>

<!-- Process and output the child elements of the design element. -->
<xsl:template name="DesignData">
<xsl:param name="HeaderRow"/>

<!-- Output the index -->
<xsl:choose>
<xsl:when test="$HeaderRow>0"><xsl:text>item Number</xsl:text></xsl:when>
<xsl:otherwise><xsl:value-of select="position()"/></xsl:otherwise>
</xsl:choose>

<!-- Output the columns -->
<xsl:if test="THUMBNAIL">
<xsl:choose>
<xsl:when test="$HeaderRow>0"><xsl:text>,Thumbnail</xsl:text></xsl:when>
<xsl:otherwise><xsl:text>,</xsl:text><xsl:value-of select="THUMBNAIL"/></xsl:otherwise>
</xsl:choose>
</xsl:if>
<xsl:if test="NAME">
<xsl:choose>
<xsl:when test="$HeaderRow>0"><xsl:text>,Design#</xsl:text></xsl:when>
<xsl:otherwise><xsl:text>,"</xsl:text><xsl:value-of select="NAME"/><xsl:text>"</xsl:text></xsl:otherwise>
</xsl:choose>
</xsl:if>
<xsl:if test="REV">
<xsl:choose>
<xsl:when test="$HeaderRow>0"><xsl:text>,Rev</xsl:text></xsl:when>
<xsl:otherwise><xsl:text>,</xsl:text><xsl:value-of select="REV"/></xsl:otherwise>
</xsl:choose>

QuestionHow can we acheive RSS feed through ASP.net ? Pin
jegastar1-Oct-07 19:28
jegastar1-Oct-07 19:28 
QuestionXFlat Pin
barney_19721-Oct-07 4:51
barney_19721-Oct-07 4:51 
AnswerRe: XFlat Pin
led mike1-Oct-07 5:17
led mike1-Oct-07 5:17 
GeneralRe: XFlat Pin
barney_19721-Oct-07 5:44
barney_19721-Oct-07 5:44 
GeneralRe: XFlat Pin
George L. Jackson1-Oct-07 6:05
George L. Jackson1-Oct-07 6:05 
GeneralRe: XFlat Pin
led mike1-Oct-07 6:21
led mike1-Oct-07 6:21 
GeneralRe: XFlat Pin
George L. Jackson1-Oct-07 7:02
George L. Jackson1-Oct-07 7:02 
AnswerRe: How to get the element values based on the index. Pin
led mike1-Oct-07 5:04
led mike1-Oct-07 5:04 
Questionxml serilization Pin
seemamltn28-Sep-07 11:41
seemamltn28-Sep-07 11:41 
QuestionXML serialization with an array Pin
cholo1027-Sep-07 3:28
cholo1027-Sep-07 3:28 
QuestionDeserialize unknown object Pin
Mogyi26-Sep-07 1:05
Mogyi26-Sep-07 1:05 
AnswerRe: Deserialize unknown object Pin
BoneSoft26-Sep-07 5:02
BoneSoft26-Sep-07 5:02 
AnswerRe: Deserialize unknown object Pin
led mike26-Sep-07 5:14
led mike26-Sep-07 5:14 
Questionxml stylesheet does not work for IMG tag Pin
prahlad198122-Sep-07 22:14
prahlad198122-Sep-07 22:14 
AnswerRe: xml stylesheet does not work for IMG tag Pin
George L. Jackson23-Sep-07 4:41
George L. Jackson23-Sep-07 4:41 
GeneralRe: xml stylesheet does not work for IMG tag Pin
prahlad198123-Sep-07 18:18
prahlad198123-Sep-07 18:18 
GeneralRe: xml stylesheet does not work for IMG tag Pin
George L. Jackson24-Sep-07 0:27
George L. Jackson24-Sep-07 0:27 

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.