cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Lisa van Gelder" <>
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:

<li>item number one
<li>item number two

 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">
		<xsl:apply-templates />

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

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

-----Original Message-----
From: Artur Bialecki []
Sent: 17 August 2000 17:31
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"?>

    <option>Mobile Phone</option>
    <option>Work Phone</option>
    <option>Snail Mail</option>

and following xsl:
<?xml version="1.0"?>
 version="1.0" xmlns:xsl="">

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

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

I get this result:
    <option>Mobile Phone
    <option>Work Phone
    <option>Snail Mail

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



::  Artur Bialecki :: ::                     ::
:: Digital Fairway :: Toronto-Ottawa :: Canada ::                     ::

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message