Click here to Skip to main content
15,887,267 members
Home / Discussions / XML / XSL
   

XML / XSL

 
Questionxml schema understanding Pin
jainiraj29-Jul-10 19:20
jainiraj29-Jul-10 19:20 
QuestionJavaScript in XSLT Pin
rathishps29-Jul-10 3:32
rathishps29-Jul-10 3:32 
QuestionODX checker tool Pin
jainiraj28-Jul-10 2:20
jainiraj28-Jul-10 2:20 
Questionhow to deserialize xsi:type attribute in C# Pin
jainiraj26-Jul-10 1:04
jainiraj26-Jul-10 1:04 
Questionjavascript in xsl Pin
lawrenceinba25-Jul-10 23:53
lawrenceinba25-Jul-10 23:53 
QuestionHow to Convert XML to Image File,thanks Pin
tgbd197023-Jul-10 20:02
tgbd197023-Jul-10 20:02 
AnswerRe: How to Convert XML to Image File,thanks Pin
Richard MacCutchan23-Jul-10 22:14
mveRichard MacCutchan23-Jul-10 22:14 
QuestionHot to convert a Wordml to XSL Pin
Exelioindia20-Jul-10 19:20
Exelioindia20-Jul-10 19:20 
Hi all,

Please suggest me how to convert a word document to xsl/xslt (.doc file to xsl file). Please provide me some sample code or URL from where I can do this using C# 2.0 without using any third party tools.

Below is sample template document, in this Date, Name, Age, Address are merge field. I have to convert this template document to XLS.

<Date>

<Name>, <Age>
<Address>

Dear <Dr./Mr./Ms. Last Name>:

Below is the sample XLS for above template. (We created this manually)

<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:fo="http://www.w3.org/1999/XSL/Format"
xmlns:ibex="http://www.xmlpdf.com/2003/ibex/Format">
<xsl:template match="InvitationContemplateInfo">
<fo:block margin-left="0.785in" margin-top="0.7in" margin-right="0.88in" color="gray" font-family="'Times New Roman'" font-size="11.5pt" letter-spacing="0.15pt"><xsl:value-of select="//Date"/>
<xsl:if test="//Name[. != '']">&#32;<xsl:value-of select="//Name"/></xsl:if>
<xsl:if test="//Age[. != '']">&#32;<xsl:value-of select="//Age"/></xsl:if>
</fo:block>

</xsl:template>
</xsl:stylesheet>


Like this we have to create for all different kind of template documents dynamically.

Thanks in advance.
Know is Drop, Unknown is Ocean

AnswerRe: Adding attributes to xml nodes Pin
DaveAuld17-Jul-10 8:58
professionalDaveAuld17-Jul-10 8:58 
GeneralRe: Adding attributes to xml nodes Pin
priyaahh17-Jul-10 9:16
priyaahh17-Jul-10 9:16 
Questionjava script code error Pin
varsh1216-Jul-10 19:26
varsh1216-Jul-10 19:26 
AnswerRe: java script code error Pin
Stoffy197225-Jul-10 10:22
Stoffy197225-Jul-10 10:22 
QuestionXSD and Elements Order Pin
MrKBA13-Jul-10 21:51
MrKBA13-Jul-10 21:51 
AnswerRe: XSD and Elements Order Pin
Stuart Dootson14-Jul-10 0:34
professionalStuart Dootson14-Jul-10 0:34 
GeneralRe: XSD and Elements Order Pin
MrKBA14-Jul-10 1:11
MrKBA14-Jul-10 1:11 
GeneralRe: XSD and Elements Order Pin
Stuart Dootson18-Jul-10 1:19
professionalStuart Dootson18-Jul-10 1:19 
GeneralRe: XSD and Elements Order Pin
MrKBA18-Jul-10 2:57
MrKBA18-Jul-10 2:57 
QuestionSearching for multiple types with XPath Pin
Trollslayer10-Jul-10 0:45
mentorTrollslayer10-Jul-10 0:45 
AnswerRe: Searching for multiple types with XPath Pin
Not Active10-Jul-10 7:06
mentorNot Active10-Jul-10 7:06 
AnswerRe: Searching for multiple types with XPath Pin
sameerazazi877-Aug-10 2:07
sameerazazi877-Aug-10 2:07 
QuestionXpath problem Pin
snehasish9-Jul-10 0:27
snehasish9-Jul-10 0:27 
AnswerRe: Xpath problem Pin
Stuart Dootson9-Jul-10 11:12
professionalStuart Dootson9-Jul-10 11:12 
QuestionExcel to XML conversion Pin
priyaahh5-Jul-10 18:49
priyaahh5-Jul-10 18:49 
AnswerRe: Excel to XML conversion Pin
evd4610-Aug-10 20:13
evd4610-Aug-10 20:13 
Questionxsl:apply-templates help please! [modified] Pin
Neophyte301-Jul-10 4:49
Neophyte301-Jul-10 4:49 

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.