cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Lisa van Gelder" <l...@wirestation.co.uk>
Subject RE: BUG ??? What's so special about <option>?
Date Thu, 17 Aug 2000 16:35:52 GMT
I've had the same thing happen to me with list tags.

The opening tag is printed but not the closing tag:

<ol>
<li>item number one
<li>item number two
</ol>

 If I put any text after the closing tag, that gets printed but the closing
tag still does not work!

I've included my code below. Any ideas appreciated!


	<xsl:template match="numbered_list">
	<ol>
		<xsl:apply-templates />
		</ol>
	</xsl:template>

		<xsl:template match="bullet_list">
	<ul>
		<xsl:apply-templates />
		</ul>
	</xsl:template>

		<xsl:template match="item">
		<li>
		<xsl:apply-templates />
		</li>
	</xsl:template>



-----Original Message-----
From: Artur Bialecki [mailto:artur@digitalfairway.net]
Sent: 17 August 2000 17:31
To: cocoon-users@xml.apache.org
Subject: BUG ??? What's so special about <option>?


Hello All,

I'm running cocoon 1.7.4 inside iAS 6.0 with iWS 4.1, jdk 1.2.2
(part of iAS), I'm also new to cocoon, xslt, etc. The end </option>
tags are not present in the output when xml is processed by
cocoon. If I change <option> to anything else (well I only tried few)
the result is correct. I use xerces and xalan that came with my version
of cocoon. I tried same xml/xsl combo in my eXcelon Stylus 2.0 and
the result was correct. I can't get to the archive to see if anyone
had this problem before so please respond if you've seen this before.

Given following input xml:
===================================================
<?xml version="1.0" encoding="UTF-8"?>
<?cocoon-process type="xslt"?>
<?xml-stylesheet href="entity.xsl" type="text/xsl"?>

<page>
  <notificationmenu>
    <option>Mobile Phone</option>
    <option>Work Phone</option>
    <option>Pager</option>
    <option>Email</option>
    <option>Snail Mail</option>
  </notificationmenu>
</page>


and following xsl:
===================================================
<?xml version="1.0"?>
<xsl:stylesheet
 version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

<xsl:template match="text()|@*"><xsl:copy/></xsl:template>

<xsl:template match="*|/">
<xsl:copy><xsl:apply-templates select="@*|node()"/></xsl:copy>
</xsl:template>
</xsl:stylesheet>


I get this result:
===================================================
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN"
 "http://www.w3.org/TR/REC-html40/strict.dtd">
<page>
 <notificationmenu>
    <option>Mobile Phone
    <option>Work Phone
    <option>Pager
    <option>Email
    <option>Snail Mail
 </notificationmenu>
</page>

<!-- This page was served in 20 milliseconds by Cocoon 1.7.4 -->


Thanks,


Artur....

--
::  Artur Bialecki :: artur@digitalfairway.net ::                     ::
:: Digital Fairway :: Toronto-Ottawa :: Canada ::                     ::


---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-users-help@xml.apache.org


Mime
View raw message