Click here to Skip to main content

XML / XSL

    RSS: RSS Feed

 
You must Sign In to use this message board. (secure sign-in)
 
Search this forum  
 FAQ
    Noise  Layout  Per page  Show 
  Refresh
QuestionJavaScript in XSLT Pinmemberrathishps4:32 29 Jul '10  
QuestionODX checker tool Pinmemberjainiraj3:20 28 Jul '10  
Questionhow to deserialize xsi:type attribute in C# Pinmemberjainiraj2:04 26 Jul '10  
Questionjavascript in xsl Pinmemberlawrenceinba0:53 26 Jul '10  
QuestionHow to Convert XML to Image File,thanks Pinmembertgbd197021:02 23 Jul '10  
AnswerRe: How to Convert XML to Image File,thanks PinmvpRichard MacCutchan23:14 23 Jul '10  
QuestionHot to convert a Wordml to XSL PinmemberExelioindia20:20 20 Jul '10  
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

QuestionMessage Removed Pinmemberpriyaahh8:14 17 Jul '10  
AnswerRe: Adding attributes to xml nodes Pinmemberdaveauld9:58 17 Jul '10  
GeneralRe: Adding attributes to xml nodes Pinmemberpriyaahh10:16 17 Jul '10  
Questionjava script code error Pinmemberahmad2520:26 16 Jul '10  
AnswerRe: java script code error PinmemberStoffy197211:22 25 Jul '10  
QuestionXSD and Elements Order Pinmemberkhaliloenit22:51 13 Jul '10  
AnswerRe: XSD and Elements Order PinmvpStuart Dootson1:34 14 Jul '10  
GeneralRe: XSD and Elements Order Pinmemberkhaliloenit2:11 14 Jul '10  
GeneralRe: XSD and Elements Order PinmvpStuart Dootson2:19 18 Jul '10  
GeneralRe: XSD and Elements Order Pinmemberkhaliloenit3:57 18 Jul '10  
QuestionSearching for multiple types with XPath PinmentorTrollslayer1:45 10 Jul '10  
AnswerRe: Searching for multiple types with XPath PinsupporterMark Nischalke8:06 10 Jul '10  
AnswerRe: Searching for multiple types with XPath Pinmembersameerazazi873:07 7 Aug '10  
QuestionXpath problem Pinmembersnehasish1:27 9 Jul '10  
AnswerRe: Xpath problem PinmvpStuart Dootson12:12 9 Jul '10  
QuestionExcel to XML conversion Pinmemberpriyaahh19:49 5 Jul '10  
AnswerRe: Excel to XML conversion Pinmemberevd4621:13 10 Aug '10  
Questionxsl:apply-templates help please! [modified] PinmemberNeophyte305:49 1 Jul '10  

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

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


Advertise | Privacy | Mobile
Web01 | 2.5.120209.1 | Last Updated 10 Feb 2012
Copyright © CodeProject, 1999-2012
All Rights Reserved. Terms of Use
Layout: fixed | fluid