cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Artur Bialecki" <ar...@digitalfairway.net>
Subject BUG ??? What's so special about <option>?
Date Thu, 17 Aug 2000 16:30:46 GMT
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 ::                     ::


Mime
View raw message