WEB开发网
开发学院数据库DB2 使用 IBM Data Studio Developer 中的 XSLT 转换 ... 阅读

使用 IBM Data Studio Developer 中的 XSLT 转换 Data Web Services 消息(下)

 2010-04-15 00:00:00 来源:WEB开发网   
核心提示: <?xmlversion="1.0"encoding="UTF-8"?><!--@generatedmapFile="NewMAPInput.map"md5sum="4160833ed98de6b7402c7

 
<?xml version="1.0" encoding="UTF-8"?> 
<!-- @generated mapFile="NewMAPInput.map" md5sum="4160833ed98de6b7402c778daaad9541" 
version="1.0.120" --> 
<!-- 
***************************************************************************** 
*  This file has been generated by the IBM XML Mapping Editor V1.0.120 
* 
*  Mapping file: NewMAPInput.map 
*  Map declaration(s): NewMAPInput 
*  Input file(s): NewXMLSchemaInput.xsd 
*  Output file(s):  
*  DataServerWebServices/MyWebServiceXSLT/MyWebServiceXSLT.getOneEmp.default.xsd 
* 
*  Note: Do not modify the contents of this file as it is overwritten 
*     each time the mapping model is updated. 
***************************************************************************** 
--> 
<xsl:stylesheet 
  xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 
  xmlns:xalan="http://xml.apache.org/xslt" 
  xmlns:in="http://www.example.org/HREmpGetInfo" 
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
  xmlns:out="urn:example" 
  xmlns:xsd="http://www.w3.org/2001/XMLSchema" 
  exclude-result-prefixes="in xalan" 
  version="1.0"> 
 <xsl:output method="xml" encoding="UTF-8" indent="yes" xalan:indent-amount="2"/> 
 <xsl:strip-space elements="*"/> 
 
 <!-- root template --> 
 <xsl:template match="/"> 
  <xsl:apply-templates select="in:HREmpGetInfo" mode="NewMAPInput"/> 
 </xsl:template> 
 
<!--This rule represents an element mapping: "in:HREmpGetInfo" to "out:getOneEmp".--> 
 <xsl:template match="in:HREmpGetInfo" mode="NewMAPInput"> 
  <out:getOneEmp> 
   <!-- a simple data mapping: "in:EMPSerial"(String) to "empno"(String) --> 
   <empno> 
    <xsl:value-of select="in:EMPSerial"/> 
   </empno> 
  </out:getOneEmp> 
 </xsl:template> 
 
 <!-- *****************  Utility Templates  ****************** --> 
 <!-- copy the namespace declarations from the source to the target --> 
 <xsl:template name="copyNamespaceDeclarations"> 
  <xsl:param name="root"/> 
  <xsl:for-each select="$root/namespace::*"> 
   <xsl:copy/> 
  </xsl:for-each> 
 </xsl:template> 
</xsl:stylesheet> 

上一页  2 3 4 5 6 7 8 9 10  下一页

Tags:使用 IBM Data

编辑录入:爽爽 [复制链接] [打 印]
赞助商链接