How to include Word Place Holders into my xslt?
-
I am trying to convert a xml file into a word document. For this i am using an xslt. It looks like this: *****XML FILE***** <?xml version='1.0' encoding='utf-8'?><?mso-application progid='Word.Document'?> <?xml-stylesheet type='text/xsl' href='C:\Documents and Settings\tejabhiramy.IDEAENTITY\Desktop\VCMData1\Projects/Teja\Ravi Shankar.yadavalli.xsl'?><contentInstance vcmId="d62dde7a94e8f110VgnVCM100000e601a8c0RCRD" vcmStatus="" vcmLogicalPath="/Teja" vcmName="Ravi Shankar.yadavalli" publishDate="" unpublishDate=""><contentTypeId>b1aade7a94e8f110VgnVCM100000e601a8c0____</contentTypeId><attribute name="name"><valueString>Ravi Shankar.yadavalli</valueString></attribute><attribute name="age"><valueString></valueString></attribute><attribute name="rank"><valueInt>9849</valueInt></attribute><classification><path><![CDATA[/Technical]]></path></classification><acl><entry name="vgnadmin" type="user"><grants><capability application="VCM" name="MODIFY_TAX_ASSOCS"/><capability application="VCM" name="RANKS_DELETE"/><capability application="VCM" name="MODIFY"/><capability application="VCM" name="MODIFY_ACL"/><capability application="VCM" name="DELETE"/><capability application="VCM" name="PROMOTE_AND_DEMOTE"/><capability application="VCM" name="SECURITY_READ"/><capability application="VCM" name="DEPLOY_AND_UNDEPLOY"/><capability application="VCM" name="RANKS_READ"/><capability application="VCM" name="SECURITY_WRITE"/><capability application="VCM" name="WORKFLOW_DEF_READ"/><capability application="VCM" name="RANKS_WRITE"/></grants></entry></acl></contentInstance> *****XSLT File*****
<xsl:stylesheet version='1.0'
xmlns:xsl='http://www.w3.org/1999/XSL/Transform'
xmlns:w='http://schemas.microsoft.com/office/word/2003/wordml'
xmlns:wx='http://schemas.microsoft.com/office/word/2003/auxHint'>
<xsl:template match='/'>
<xsl:processing-instruction name='mso-application'>
<xsl:text>progid='Word.Document'</xsl:text>
</xsl:processing-instruction>
<w:wordDocument>
<xsl:attribute name='xml:space'>preserve</xsl:attribute>
<xsl:copy-of select='$styles-element'/>
<w:docPr><w:useXSLTWhenSaving/>
<w -
I am trying to convert a xml file into a word document. For this i am using an xslt. It looks like this: *****XML FILE***** <?xml version='1.0' encoding='utf-8'?><?mso-application progid='Word.Document'?> <?xml-stylesheet type='text/xsl' href='C:\Documents and Settings\tejabhiramy.IDEAENTITY\Desktop\VCMData1\Projects/Teja\Ravi Shankar.yadavalli.xsl'?><contentInstance vcmId="d62dde7a94e8f110VgnVCM100000e601a8c0RCRD" vcmStatus="" vcmLogicalPath="/Teja" vcmName="Ravi Shankar.yadavalli" publishDate="" unpublishDate=""><contentTypeId>b1aade7a94e8f110VgnVCM100000e601a8c0____</contentTypeId><attribute name="name"><valueString>Ravi Shankar.yadavalli</valueString></attribute><attribute name="age"><valueString></valueString></attribute><attribute name="rank"><valueInt>9849</valueInt></attribute><classification><path><![CDATA[/Technical]]></path></classification><acl><entry name="vgnadmin" type="user"><grants><capability application="VCM" name="MODIFY_TAX_ASSOCS"/><capability application="VCM" name="RANKS_DELETE"/><capability application="VCM" name="MODIFY"/><capability application="VCM" name="MODIFY_ACL"/><capability application="VCM" name="DELETE"/><capability application="VCM" name="PROMOTE_AND_DEMOTE"/><capability application="VCM" name="SECURITY_READ"/><capability application="VCM" name="DEPLOY_AND_UNDEPLOY"/><capability application="VCM" name="RANKS_READ"/><capability application="VCM" name="SECURITY_WRITE"/><capability application="VCM" name="WORKFLOW_DEF_READ"/><capability application="VCM" name="RANKS_WRITE"/></grants></entry></acl></contentInstance> *****XSLT File*****
<xsl:stylesheet version='1.0'
xmlns:xsl='http://www.w3.org/1999/XSL/Transform'
xmlns:w='http://schemas.microsoft.com/office/word/2003/wordml'
xmlns:wx='http://schemas.microsoft.com/office/word/2003/auxHint'>
<xsl:template match='/'>
<xsl:processing-instruction name='mso-application'>
<xsl:text>progid='Word.Document'</xsl:text>
</xsl:processing-instruction>
<w:wordDocument>
<xsl:attribute name='xml:space'>preserve</xsl:attribute>
<xsl:copy-of select='$styles-element'/>
<w:docPr><w:useXSLTWhenSaving/>
<w -
Hey, I did consult the Wordml for that and have come to know that these tags
Click here to enter text. Address
These tags helped me when i placed them in a HTML document and opened that html in word. Ofcourse i had to include the tag definitions in the HTML tag. This process was successful. Now when i try placing these tags in an XSLT Which i wrote for my xml document, they are not appearing. Could u please specify as to where shud i place these tags in my XSL Document Thanks in advance Teja -
Hey, I did consult the Wordml for that and have come to know that these tags
Click here to enter text. Address
These tags helped me when i placed them in a HTML document and opened that html in word. Ofcourse i had to include the tag definitions in the HTML tag. This process was successful. Now when i try placing these tags in an XSLT Which i wrote for my xml document, they are not appearing. Could u please specify as to where shud i place these tags in my XSL Document Thanks in advance TejaTejabhiram wrote:
Could u please specify as to where shud i place these tags in my XSL Document
I don't know what tags you are talking about. I you attempted to post XML on this forum you failed. Read the posting instructions. If you do not know how to use XSLT there are good tutorials on www.w3schools.com