Article View: fr.comp.text.xml
Article #8896Tutorial debugging
From: Wilfried Kopp
Date: Wed, 11 Jul 2001 17:48
Date: Wed, 11 Jul 2001 17:48
131 lines
4532 bytes
4532 bytes
This is a multi-part message in MIME format.
--------------AB67FA575F713B91C975F6D6
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
I am using a tutorial from xml spy but when i generate the html from the
xml, the page contains no data. I tried with the tutorial, with a
example from me... always the same.
These are my files :
XML :
<?xml version="1.0" encoding="UTF-8"?>
<!-- edited with XML Spy v3.5 NT (http://www.xmlspy.com) by Will (ASVS)
-->
<?xml-stylesheet type="text/xsl"
href="C:\WINNT\Profiles\wilfried\Desktop\XML_Tutorial\will.xsl"?>
<Company xmlns:xsi="http://www.w3.org/2000/10/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="C:\WINNT\Profiles\wilfried\Desktop\XML_Tutorial\will.xsd">
<Name>ASVS</Name>
<Person>
<Name>Will</Name>
<Address>
<Street>Henry</Street>
<Zip>22314</Zip>
</Address>
</Person>
<Person>
<Name>Rob</Name>
<Address>
<Street>Eisen</Street>
<Zip>22304</Zip>
</Address>
</Person>
</Company>
#####################################
XSL :
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:xsi ="http://www.w3.org/2000/10/XMLSchema-instance"
xmlns:my="http://my-company.com/namespace">
<xsl:template match="/">
<html>
<head><title>Name :<xsl:value-of select="my:Name"/></title></head>
<body>
<h1><center>Name :<xsl:value-of select="my:Name"/></center></h1>
<xsl:apply-templates select="//my:Name"/>
<table border="1" bgcolor="yellow">
<thead align="center">
<td><strong>Name</strong></td>
</thead>
<xsl:apply-templates select="//my:Person"/>
</table>
</body>
</html>
</xsl:template>
<xsl:template match="my:Person">
<tr>
<xsl:for-each select="*">
<td><xsl:value-of select="."/></td>
</xsl:for-each>
<xsl:for-each select="@*">
<td><xsl:value-of select="."/></td>
</xsl:for-each>
</tr>
</xsl:template>
</xsl:stylesheet>
#############################
HTML :
<html xmlns:xsi="http://www.w3.org/2000/10/XMLSchema-instance"
xmlns:my="http://my-company.com/namespace">
<head>
<META http-equiv="Content-Type" content="text/html; charset=UTF-16">
<title>Name :</title></head>
<body>
<h1><center>Name :</center></h1>
<table border="1" bgcolor="yellow">
<thead align="center">
<td><strong>Name</strong></td>
</thead>
</table>
</body>
</html>
I think I missed something important. Is there a way to debugg ????
--
___________________________________________
Wilfried Kopp - wilfried@machinevision1.com
Machine Vision Engineering System Programmer
Agris-Schoen Vision Systems, Inc.
4715B Eisenhower Avenue
Alexandria, VA-22304
http://www.machinevision1.com
icq#7643489
___________________________________________
--------------AB67FA575F713B91C975F6D6
Content-Type: text/x-vcard; charset=us-ascii;
name="wilfried.vcf"
Content-Transfer-Encoding: 7bit
Content-Description: Card for Wilfried Kopp
Content-Disposition: attachment;
filename="wilfried.vcf"
begin:vcard
n:Kopp;Wilfried
tel;fax:703-212-8654
tel;home:703-837-8659
tel;work:703-212-8655
x-mozilla-html:TRUE
url:http://www.machinevision1.com
org:Agris-Schoen Vision Systems, Inc.
adr:;;501, South Henry Street;Alexandria;VA;22314;USA
version:2.1
email;internet:wilfried@machinevision1.com
title:Machine Vision Engineer Programmer
note:icq # 7643489
fn:Wilfried Kopp
end:vcard
--------------AB67FA575F713B91C975F6D6--
Technical Details
Message-ID:
<3B4C9EDC.1270B46B@machinevision1.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!news.tele.dk!193.251.151.101!opentransit.net!proxad.net!feeder2-1.proxad.net!nnrp1.proxad.net.POSTED!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 114f60,c91ec589ba23d4c5,start X-Google-Attributes: gid114f60,public X-Google-ArrivalTime: 2001-07-11 10:48:49 PST Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!news.tele.dk!193.251.151.101!opentransit.net!proxad.net!feeder2-1.proxad.net!nnrp1.proxad.net.POSTED!not-for-mail Message-ID: <3B4C9EDC.1270B46B@machinevision1.com> From: Wilfried Kopp <wilfried@machinevision1.com> Organization: Agris-Schoen Vision Systems, Inc. X-Mailer: Mozilla 4.76 [en] (WinNT; U) X-Accept-Language: en MIME-Version: 1.0 Newsgroups: fr.comp.text.xml Subject: Tutorial debugging Content-Type: multipart/mixed; boundary="------------AB67FA575F713B91C975F6D6" Lines: 132 Date: Wed, 11 Jul 2001 17:48:48 GMT NNTP-Posting-Host: 64.7.10.160 X-Complaints-To: abuse@proxad.net X-Trace: nnrp1.proxad.net 994873728 64.7.10.160 (Wed, 11 Jul 2001 19:48:48 CEST) NNTP-Posting-Date: Wed, 11 Jul 2001 19:48:48 CEST