Hello, I have written a XSL which is to read the data from a DTO and write to a .CSV file with the following format. I am not able to create semi-colon values and also the padding format written is not being reflected in the output file. Can anyone help in incorporating these formats. I am attaching my XSL here for the reference. Thanks for the same. -The file created is an excel file. The extension is “.CSV”. -The data are separated by the character semi-colon “;”. -Every data row end up with an end of row character and a carriage return character (CR/LF). -The end of the file is marked by an empty record row. In other words, the last row only contain semi-colon characters and all the fields are empty. If the data length is inferior to the data maximum size, a padding is done as following: - the numeric data are filled with “0” (zero) on the left (for example 003) - the alphanumeric data are filled with empty spaces “ “ <?xml version="1.0" encoding="utf-8"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:dft="http://MyProj.Dto.CustomerSpecificExport/"> <xsl:output method="text" indent="yes" /> <xsl:template match="/dft:ArrayOfExportDataDto"> <xsl:apply-templates select="dft:ExportDataDto"/> </xsl:template> <xsl:template match="dft:ExportDataDto"> - <xsl:call-template name="pad-right"> <xsl:with-param name="str" select="AgencyName" /> <xsl:with-param name="len" select="20" /> </xsl:call-template> - <xsl:call-template name="pad-right"> <xsl:with-param name="str" select="CandidateName" /> <xsl:with-param name="len" select="20" /> </xsl:call-template> - <xsl:call-template name="pad-right"> <xsl:with-param name="str" select="CandidateSurname" /> <xsl:with-param name="len" select="10" /> </xsl:call-template> - <xsl:call-template name="pad-right"> <xsl:with-param name="str" select="BeginDate" /> <xsl:with-param name="len" select="10" /> <xsl:with-param name="pad" select="0" /> </xsl:call-template> - <xsl:call-template name="pad-right"> <xsl:with-param name="str" select="InitialMissionEndDate" /> <xsl:with-param name="len" select="10" /> <xsl:with-param name="pad" select="0" /> </xsl:call-template> - <xsl:call-template name="pad-left"&
RK11 2009
Posts
-
How to create a semi-colon seperated file using XSL -
How to convert an exe into a serviceI have an exe application which is on vb6. I want to remotely push it into different machines and run it as a service there.This service should start as soon as the user logs into his machine. Please tell me if it can be achieved and how to do it? Thanks.
-
how to beat around shutdown –aHi Dave, Thanks for your reply but we can not implement the above suggestions as the some user need the admin rights on their m/c and also the exe file has to run on each individuals m/c so that it can shut their PC at a particular time. Any other suggestion then pls do let me know.
-
how to beat around shutdown –aNo , we have to dispaly the message to user some 5 mins before so that he can save the changes, so we can not put the timeout parameter as 0.
-
how to beat around shutdown –aI am using the InitiateSystemShutdown function and am forcing the shut down still a person with admin rights on the m/c is able to abort the shut down using shutdown -a command. so any help here.
-
how to beat around shutdown –aThanks Mithun, but i wanted to know if the forced shut down has been initiated, the user should not be able to stop this by using "shutdown –a" command. How to achieve this?
-
how to beat around shutdown –aHello , I am designing a VB application where i am forcing a machine shutdown using function as below. Function InitiateSystemShutdown Lib "advapi32.dll" But i found that the user can stop the forced shut down using the command "shutdown –a". So wanted a help as to how I can overcome this command and still force the shutdown. Thanks in advance for the same. Here in InitiateSystemShutdown function i am passing the forced parameter as true. still a user with admin rights on the m/c is able to abort the shut down.