1
我有一個將xml轉換爲word的文檔。 它開始像這樣:如何編輯將xml轉換爲Word的文件?
<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="xml" omit-xml-declaration="no" version="1.0" encoding="utf-8" standalone="yes" />
<xsl:template match="/">
<xsl:processing-instruction name="mso-application">
<xsl:text>progid="Word.Document"</xsl:text>
</xsl:processing-instruction>
<w:wordDocument xmlns:w="http://schemas.microsoft.com/office/word/2003/wordml" xmlns:v="urn:schemas-microsoft-com:vml" xmlns:w10="urn:schemas-microsoft-com:office:word" xmlns:sl="http://schemas.microsoft.com/schemaLibrary/2003/core" xmlns:aml="http://schemas.microsoft.com/aml/2001/core" xmlns:wx="http://schemas.microsoft.com/office/word/2003/auxHint" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:dt="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882" xmlns:st1="urn:schemas-microsoft-com:office:smarttags" w:macrosPresent="yes" w:embeddedObjPresent="no" w:ocxPresent="yes" xml:space="preserve">
<o:SmartTagType o:namespaceuri="urn:schemas-microsoft-com:office:smarttags" o:url="http://www.5iantlavalamp.com/" o:name="country-region" />
<o:SmartTagType o:namespaceuri="urn:schemas-microsoft-com:office:smarttags" o:url="http://www.5iantlavalamp.com/" o:name="place" />
<o:DocumentProperties>
<o:Title></o:Title>
我怎樣才能打開它增加一些新的領域,因爲XML有所改變,但我想編輯在當前格式它已得到。有什麼方法可以直觀地編輯它嗎?
我安裝了氧氣,但仍然無法找到如何編輯此文件的視覺效果,我的意思是看它,因爲它會顯示爲一個單詞文檔。請您幫助我更多的細節?謝謝! – medusa 2010-08-19 07:22:00
XSLT是一個「程序」,它告訴XML變換器如何將一種XML轉換爲另一種。就你而言,它採用源代碼形式並從中創建一個文檔文檔。沒有辦法在Word中直觀地編輯XSLT程序,因爲它不是輸出。你需要做的是*運行* XSLT程序的一些輸入來獲得一個Word文檔,然後你可以檢查。 – 2010-08-19 09:51:25