· Home
· Table of Contents
· Training, Certification & Codes

NDTML - XML for NDT

Morio Onoe,
Professor Emeritus, University of Tokyo & Honorary Member of ICNDT
David Gilbert,
Head of Media, The British Institute of Non-Destructive Testing.
Contact

ABSTRACT

Introduction

Overview of XML

Some Examples

Toward NDTML

Conclusion

References

  1. [CEN, 2000] Generic NDE Data Format Model, http://www.kb.bam.de/CEN-SDF/intro_en.html
  2. [MathML, 2001] W3C's Math Home Page, http://www.w3.org/Math
  3. [Onoe, M, et al. 2000] ICNDT - Internet for ICNDT: Proc. 15th WCNDT, Rome, 2000. http://www.ndt.net/article/wcndt00/index.htm
  4. [Trappist, 1994] The Trappist Project - European distributed NDE system, http://www.kb.bam.de/trappist.html
  5. [XML, 2000] Canonical XML, Version 1.0: W3C Recommendation 15 March 2001. http://www.w3.org/TR/xml-c14n
Code 1: A part of ICNDT directory in XML
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<?xml-stylesheet type="text/xsl" href="table.xsl" ?>
<directory>
    <member>
        <country>ALGERIA</country>
         <society>C.S.C.- Centre de Recherche Scientifique et Technique en Soudage en Controle</society>
        <address>Route de Dely lbrahim</address>
        <town>Cheraga ALGER</town>
        <zip>BP64</zip>
        <telephone>+213 2 361 850</telephone>
        <fax>+213 2 361 850</fax>
        <email>zergougmourad@hotmail.com</email>
        <website></website>
        <status></status>
    </member>
    <member>
        <country>ARGENTINA</country>
        <society>ENDE-Ensayos no Destructivos y Estructurales-Comision Nacional de Energia Atomica</society>
        <address>Av. General Paz 1499-San Martin Pcia</address>
        <town>Buenos Aires</town>
        <zip>l650</zip>
        <telephone>+54 11 4 754 7257</telephone>
        <fax>+54 11 4 754 7355</fax>
        <email>ende@cnea.gov.ar</email>
        <website></website>
        <status>M</status>
    </member>
    <member>
        <country>AUSTRALIA</country>
        <society>Australian Institue of NDT</society>
        <address>PO box52, Parkville</address>
        <town>Victoria</town>
        <zip>3052</zip>
        <telephone>+61 3 9326 7550</telephone>
        <fax>+61 3 9326 7272</fax>
        <email>ozone@powerup.com.au</email>
        <website>http://www.aindt.asn.au</website>
        <status>M</status>
    </member>
    <member>
        <country>AUSTRIA</country>
        <society>Austrian Society for NDT-OGfZP</society>
        <address>Krugerstrasse 16</address>
        <town>Wien</town>
        <zip>A-1O15</zip>
        <telephone>+43 1 798 6611-31</telephone>
        <fax>+43 1 798 6611-31</fax>
        <email>mittli@mittli.at</email>
        <website></website>
        <status>M</status>
    </member>
</directory>
        <society>Austrian Society for NDT-OGfZP</society>
        <address>Krugerstrasse 16</address>
        <town>Wien</town>
        <zip>A-1O15</zip>
        <telephone>+43 1 798 6611-31</telephone>
        <fax>+43 1 798 6611-31</fax>
        <email>mittli@mittli.at</email>
        <status>M</status>
    </member>
</directory>

Code 2: A stylesheet for table format in XSL
<?xml version="1.0" encoding="UTF-8" ?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/TR/WD-xsl">
<xsl:template match="/">
    <html>
        <head>
             <title>ICNDT directory 2001.2</title>
      <link rel="stylesheet" type="text/css" href="book.css" />
        </head>
        <body>
        <center><h1>ICNDT Directory (2001.2)</h1></center>
        <table border="1">
        <tr>
      <th rowspan="2">country</th>
      <th rowspan="2">society</th>
      <th colspan="2">address</th>
      <th>telephone</th>
      <th>email</th>
      <th rowspan="2">status</th>
        </tr>
        <tr>
      <th>town</th>
      <th>zip</th>
      <th>fax</th>
      <th>website</th>
                        </tr>
<xsl:apply-templates match="directory" />
    </table>
    </body>
    </html>
</xsl:template>
<xsl:template match="directory">
<xsl:for-each select="member">
    <tr>
        <td rowspan="2" nowrap="nowrap">
    <xsl:value-of select="country" />
        </td>
        <td rowspan="2">
        <xsl:value-of select="society" />
        </td>
        <td colspan="2" nowrap="nowrap">
<xsl:value-of select="address" />
        </td>
        <td nowrap="nowrap">
<xsl:value-of select="telephone" />
        </td>
        <td nowrap="nowrap">
<xsl:value-of select="email" />
        </td>
        <td rowspan="2" nowrap="nowrap">
<xsl:value-of select="status" />
        </td>
</tr>
<tr>
        <td nowrap="nowrap">
<xsl:value-of select="town" />
        </td>
        <td nowrap="nowrap">
<xsl:value-of select="zip" />
        </td>
        <td nowrap="nowrap">
<xsl:value-of select="fax" />
        </td>
        <td nowrap="nowrap">
<xsl:value-of select="website" />
        </td>
        </tr>
</xsl:for-each>
</xsl:template>
</xsl:stylesheet>

Code 3: A stylesheet for list format in XSL
<?xml version="1.0" encoding="UTF-8" ?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/TR/WD-xsl">
<xsl:template match="/">
        <html>
            <head>
        <title>ICNDT Directory 2001.2</title>
        <link rel="stylesheet" type="text/css" href="book2.css" />
            </head>
            <body>
                <h1>ICNDT Directory 2001.2</h1>
                <hr />
                <xsl:apply-templates match="directory" />
            </body>
            </html>
</xsl:template>
<xsl:template match="directory">
        <xsl:for-each select="member">
        <h3><b><xsl:value-of select="country" /></b></h3>
        <xsl:value-of select="society" /><br />
        <xsl:value-of select="address" /><br />
        <xsl:value-of select="town" />,
        <xsl:value-of select="zip" />,
        <xsl:value-of select="country" /><br />
         <it>tel:<xsl:value-of select="telephone" />, fax:
         <xsl:value-of select="fax" /><br />
         email: <xsl:value-of select="email" /> ,
         website:
        <xsl:value-of select="website" /></it>
</xsl:for-each>
</xsl:template>
</xsl:stylesheet>

Code 4: A DTD associated with Code 1
<!ELEMENT directory (member*)>
<!ELEMENT member (country, society, address, town, zip, telephone, fax, email, website, status)>
          <!ELEMENT country (#PCDATA)>
         <!ELEMENT society (#PCDATA)>
         <!ELEMENT address (#PCDATA)>
         <!ELEMENT town (#PCDATA)>
         <!ELEMENT zip (#PCDATA)>
         <!ELEMENT telephone (#PCDATA)>
         <!ELEMENT fax (#PCDATA)>
         <!ELEMENT email (#PCDATA)>
         <!ELEMENT website (#PCDATA)>
         <!ELEMENT status (#PCDATA)>

© AINDT , created by NDT.net |Home|    |Top|