Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. XML / XSL
  4. How to include Word Place Holders into my xslt?

How to include Word Place Holders into my xslt?

Scheduled Pinned Locked Moved XML / XSL
xmlwpfcomsecurityregex
4 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • T Offline
    T Offline
    Tejabhiram
    wrote on last edited by
    #1

    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

    L 1 Reply Last reply
    0
    • T Tejabhiram

      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

      L Offline
      L Offline
      led mike
      wrote on last edited by
      #2

      Don't you need to consult the WordML documentation for that?

      T 1 Reply Last reply
      0
      • L led mike

        Don't you need to consult the WordML documentation for that?

        T Offline
        T Offline
        Tejabhiram
        wrote on last edited by
        #3

        Hey, I did consult the Wordml for that and have come to know that these tagsClick 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

        L 1 Reply Last reply
        0
        • T Tejabhiram

          Hey, I did consult the Wordml for that and have come to know that these tagsClick 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

          L Offline
          L Offline
          led mike
          wrote on last edited by
          #4

          Tejabhiram 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

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups