Return-Path: Delivered-To: apmail-xml-general-archive@xml.apache.org Received: (qmail 75167 invoked by uid 500); 1 Aug 2001 08:37:10 -0000 Mailing-List: contact general-help@xml.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: general@xml.apache.org Delivered-To: mailing list general@xml.apache.org Received: (qmail 74916 invoked from network); 1 Aug 2001 08:37:06 -0000 Message-ID: <003401c11a65$4f418e80$7801a8c0@ewarna.com> From: "Kazi the P i R @ t {-" To: Cc: Subject: XSLT trouble Date: Wed, 1 Aug 2001 16:38:16 +0800 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0031_01C11AA8.5D5405A0" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 X-Spam-Rating: h31.sny.collab.net 1.6.2 0/1000/N ------=_NextPart_000_0031_01C11AA8.5D5405A0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable I have made a post earlier about troubl i am having performing the = transformation from xml to html. I havent reached a solution yet. But it occured to me that maybe i = should lessent he scope of my troubles! :) so i cut short the xsl file. = It looks like this now: A Guide to the Search Utility

For more information contact the person = below:



My dtd is such: Currently i am very lost.... so i hope anyone can shed some light on me=20 kazi | | | = |||||||||||||||||||||||||||| o ||||||||||||||||||||||||||| ------=_NextPart_000_0031_01C11AA8.5D5405A0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
I have made a post earlier about troubl = i am having=20 performing the transformation from xml to html.
I havent reached a solution yet. But it = occured to=20 me that maybe i should lessent he scope of my troubles! :) so i cut = short the=20 xsl file. It looks like this now:
 
<?xml version=3D"1.0" = ?>
<xsl:stylesheet=20 xmlns:xsl=3D"http://www.w3c.org/1999/XS= L/Transform"=20 version=3D"1.0">
<xsl:template=20 match=3D"/">
<html>
<head>
<title>A Guide = to the=20 Search Utility</title>
</head>
<body = style=3D"font-family:=20 Arial;"=20 bgcolor=3D"cccccc">
<xsl:apply-templates/>
</body></html>
</xsl:template>
 
<xsl:template=20 match=3D"contact">
<p><xsl:text>For more information = contact the=20 person=20 below:</xsl:text></p>
<p>
<b><xsl:apply-= templates/></b>
</p>
</xsl:template>
 
<xsl:template = match=3D"name">
 =20 <br/>
    =20 <xsl:apply-templates/>
</xsl:template>
 
<xsl:template = match=3D"email">
 =20 <br/>
    =20 <xsl:apply-templates/>
</xsl:template>
 
<xsl:template=20 match=3D"text()">
</xsl:template>
 
</xsl:stylesheet>
 
My dtd is such:
<!ELEMENT guide=20 (buttons,how-to,contact)>
<!ELEMENT buttons=20 (search,view,sort,warning,respond)>
<!ELEMENT how-to=20 (description+)>
<!ELEMENT contact = (name,email)>
<!ELEMENT=20 search (text, image)>
<!ELEMENT view = (text,image)>
<!ELEMENT=20 sort (text,image)>
<!ELEMENT warning = (text,image)>
<!ELEMENT=20 respond (text,image)>
<!ELEMENT text = (#PCDATA)>
<!ELEMENT=20 image (#PCDATA)>
<!ELEMENT description=20 (#PCDATA|sub-point)*>
<!ELEMENT sub-point = (#PCDATA)>
<!ELEMENT=20 name (#PCDATA)>
<!ELEMENT email (#PCDATA)>
Currently i am very lost.... so i hope = anyone can=20 shed some light on me
 
kazi
  |
  |
  |
       =20             =    =20             =    =20      |||||||||||||||||||||||||||| o=20 |||||||||||||||||||||||||||
 
------=_NextPart_000_0031_01C11AA8.5D5405A0--