以下为其中的xml文件内容
<?xml version="1.0" encoding="GB2312"?>
<publication xmlns:scms="http://www.chikuntech.com/scms" scms:type="article">
<title xml:lang="zh" scms:type="text400" scms:label="标题"/>
<subtitle xml:lang="zh" scms:type="text400" scms:label="附标题"/>
<author xml:lang="zh" scms:type="text400" scms:label="作者/来源"/>
<summary xml:lang="zh" scms:type="large-text" scms:label="摘要"/>
<content xml:lang="zh" scms:type="formated-text" scms:label="正文"/>
<keyword xml:lang="zh" scms:type="text" scms:label="关键字"/>
<imagearticle scms:type="image" scms:label="文章图片"/>
<imagelink scms:type="image" scms:label="关联图片"/>
</publication>

解决方案 »

  1.   

    以下为xslt文件部分内容:
    <?xml version="1.0" encoding="GB2312"?>
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:scms="http://www.chikuntech.com/scms">
    <xsl:output method="html" encoding="GB2312" media-type="html" indent="yes"/>
    <xsl:param name="locale">zh</xsl:param>
    <xsl:template match="/publication">
      <table>
         <xsl:apply-templates select="node()[@xml:lang=$locale] | node()[not(@xml:lang)]"/>
      </table>
    </xsl:template>
    <!-- ============= 简单文本 =============== -->
    <xsl:template match="node()[@scms:type='text']">
      <tr>
          <td align="right" class="text">
          <b>
    <xsl:value-of select="@scms:label"/> : 
          </b>
          </td>
          <td>
     <input type="text" value="{.}" name="FIELD_{name()}" style="width=600"/>
          </td>
      </tr>
    </xsl:template>
    </xsl:stylesheet>