One thing that is wrong is that xmlns:xsl="
http://www.w3c.org/1999/XSL/Transform" should be xmlns:xsl
="http://www.w3.org/1999/XSL/Transform". (Notice w3 vs w3c).
If I do that, your stylesheet builds OK for me.
-scott
"Kazi the P i
R @ t {-" To: <general@xml.apache.org>
<kazi cc: <cocoon-users@xml.apache.org>, (bcc:
Scott Boag/CAM/Lotus)
Subject: XSLT trouble
08/01/2001
04:38 AM
Please
respond to
general
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:
<?xml version="1.0" ?>
<xsl:stylesheet xmlns:xsl="http://www.w3c.org/1999/XSL/Transform" version
="1.0">
<xsl:template match="/">
<html>
<head>
<title>A Guide to the Search Utility</title>
</head>
<body style="font-family: Arial;" bgcolor="cccccc">
<xsl:apply-templates/>
</body>
</html>
</xsl:template>
<xsl:template match="contact">
<p><xsl:text>For more information contact the person below:</xsl:text></p>
<p>
<b><xsl:apply-templates/></b>
</p>
</xsl:template>
<xsl:template match="name">
<br/>
<xsl:apply-templates/>
</xsl:template>
<xsl:template match="email">
<br/>
<xsl:apply-templates/>
</xsl:template>
<xsl:template match="text()">
</xsl:template>
</xsl:stylesheet>
My dtd is such:
<!ELEMENT guide (buttons,how-to,contact)>
<!ELEMENT buttons (search,view,sort,warning,respond)>
<!ELEMENT how-to (description+)>
<!ELEMENT contact (name,email)>
<!ELEMENT search (text, image)>
<!ELEMENT view (text,image)>
<!ELEMENT sort (text,image)>
<!ELEMENT warning (text,image)>
<!ELEMENT respond (text,image)>
<!ELEMENT text (#PCDATA)>
<!ELEMENT image (#PCDATA)>
<!ELEMENT description (#PCDATA|sub-point)*>
<!ELEMENT sub-point (#PCDATA)>
<!ELEMENT name (#PCDATA)>
<!ELEMENT email (#PCDATA)>
Currently i am very lost.... so i hope anyone can shed some light on me
kazi
|
|
|
|||||||||||||||||||||||||||| o
|||||||||||||||||||||||||||
---------------------------------------------------------------------
In case of troubles, e-mail: webmaster@xml.apache.org
To unsubscribe, e-mail: general-unsubscribe@xml.apache.org
For additional commands, e-mail: general-help@xml.apache.org
|