Click here to Skip to main content
15,887,485 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi I have one task, I need to get the matching xml elements outer xml in word document, in xml to word conversion. I use <xsl:copy-of> it show the content in fo file but word doesn't reflect the outer xml.

XML
<xsl:template match="//metaInfo">
    <xsl:copy>
      <xsl:copy-of select="node()|@*"/>
    </xsl:copy>
  </xsl:template>


the fo output:

XML
<metaInfo id="acprof-9780198737834-chapter-7-metaInfo-1">
<creatorGroup>
<creator class="author" invertedForm="Furneaux, Holly">
	<forenames>Holly</forenames>
	<surname>Furneaux</surname>
</creator>
</creatorGroup>
</metaInfo>


how to show this in word document?
Posted
Comments
George Jonsson 21-Nov-15 6:45am    
What is your input?
Member 11724596 21-Nov-15 7:05am    
<metaInfo id="acprof-9780198737834-chapter-7-metaInfo-1">
<creatorgroup>
<creator class="author" invertedform="Furneaux, Holly">
<forenames>Holly
<surname>Furneaux


</metaInfo>

input is xml content
George Jonsson 21-Nov-15 7:27am    
I thought that was the output.
Is that the whole input XML just copied?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900