76 lines
4.1 KiB
HTML
76 lines
4.1 KiB
HTML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<!DOCTYPE html
|
|
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
<html lang="en-us" xml:lang="en-us">
|
|
<head>
|
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
|
<meta name="security" content="public" />
|
|
<meta name="Robots" content="index,follow" />
|
|
<meta http-equiv="PICS-Label" content='(PICS-1.1 "http://www.icra.org/ratingsv02.html" l gen true r (cz 1 lz 1 nz 1 oz 1 vz 1) "http://www.rsac.org/ratingsv01.html" l gen true r (n 0 s 0 v 0 l 0) "http://www.classify.org/safesurf/" l gen true r (SS~~000 1))' />
|
|
<meta name="DC.Type" content="reference" />
|
|
<meta name="DC.Title" content="Example: Condensing an existing XPCML document" />
|
|
<meta name="copyright" content="(C) Copyright IBM Corporation 2006" />
|
|
<meta name="DC.Rights.Owner" content="(C) Copyright IBM Corporation 2006" />
|
|
<meta name="DC.Format" content="XHTML" />
|
|
<meta name="DC.Identifier" content="rzahhxpcmlexmplconcondense01" />
|
|
<meta name="DC.Language" content="en-us" />
|
|
<!-- All rights reserved. Licensed Materials Property of IBM -->
|
|
<!-- US Government Users Restricted Rights -->
|
|
<!-- Use, duplication or disclosure restricted by -->
|
|
<!-- GSA ADP Schedule Contract with IBM Corp. -->
|
|
<link rel="stylesheet" type="text/css" href="./ibmdita.css" />
|
|
<link rel="stylesheet" type="text/css" href="./ic.css" />
|
|
<title>Example: Condensing an existing XPCML document</title>
|
|
</head>
|
|
<body id="rzahhxpcmlexmplconcondense01"><a name="rzahhxpcmlexmplconcondense01"><!-- --></a>
|
|
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
|
|
<h1 class="topictitle1">Example: Condensing an existing XPCML document</h1>
|
|
<div><div class="section"><p>The following example illustrates how to condense an existing
|
|
XPCML document. The example includes original XPCML source, the resulting
|
|
condensed XPCML, and the extended schema.</p>
|
|
</div>
|
|
<div class="section"><h4 class="sectiontitle">Original XPCML source</h4><pre> <?xml version="1.0" encoding="UTF-8"?>
|
|
<xpcml xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
xsi:noNamespaceSchemaLocation="xpcml.xsd" version="4.0">
|
|
<program name="prog1" path="/QSYS.LIB/W95LIB.LIB/PROG1.PGM">
|
|
<parameterList>
|
|
<stringParm name="parm1" passDirection="in" passMode="value"
|
|
minvrm="V5R2M0" ccsid="37" length="10">Value 1</stringParm>
|
|
</parameterList>
|
|
</program>
|
|
</xpcml></pre>
|
|
</div>
|
|
<div class="section"><h4 class="sectiontitle">Condensed XPCML source</h4><pre> <?xml version="1.0" encoding="UTF-8"?>
|
|
<xpcml xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
xsi:noNamespaceSchemaLocation="myXSD.xsd" version="4.0">
|
|
<program name="prog1" path="/QSYS.LIB/W95LIB.LIB/PROG1.PGM">
|
|
<parameterList>
|
|
<parm1_>Value 1</parm1_>
|
|
</parameterList>
|
|
</program>
|
|
</xpcml></pre>
|
|
</div>
|
|
<div class="section"><h4 class="sectiontitle">Generated schema</h4><pre> <!-- parm1's XSD definition -->
|
|
<xs:schema xmlns:xs='http://www.w3.org/2001/XMLSchema'>
|
|
<!-- Link back to XPCML.xsd -->
|
|
<xs:include schemaLocation='xpcml.xsd'/>
|
|
<xs:element name="parm1_" substitutionGroup="stringParmGroup" >
|
|
<xs:complexType>
|
|
<xs:simpleContent>
|
|
<xs:restriction base="stringParmType">
|
|
<!-- Attributes defined for parm1 -->
|
|
<xs:attribute name="name" type="string50" fixed="parm1" />
|
|
<xs:attribute name="length" type="xs:string" fixed="10" />
|
|
<xs:attribute name="passMode" type="xs:string" fixed="value" />
|
|
<xs:attribute name="ccsid" type="xs:string" fixed="37" />
|
|
<xs:attribute name="minvrm" type="xs:string" fixed="V5R2M0" />
|
|
</xs:restriction>
|
|
</xs:simpleContent>
|
|
</xs:complexType>
|
|
</xs:element>
|
|
</schema></pre>
|
|
</div>
|
|
</div>
|
|
|
|
</body>
|
|
</html> |