cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Zvi <the...@ifrance.com>
Subject Re: BUG ??? What's so special about <option>?
Date Thu, 17 Aug 2000 19:25:34 GMT
add next PI at the beginning of your XML file:

<?cocoon-format name="text/xml"?>

or

change default formatter to text/xml in cocoon.properties file.

Zvi

"Ilya A. Kriveshko" wrote:

> Zvi wrote:
>
> > use XML formatter and not HTML formatter, then it should be ok
>
> What does this mean, and how do I do this? (I am sorry if it seems
> obvious to you guys, but I am still a caterpillar - not in a cocoon yet.)
>
> Also, even if I do no XSL at all, it stills strips the closing </option>:
>
> <?xml version="1.0" encoding="UTF-8"?>
>
> <body>
>   <option>option 1</option>
>   <option>option 2</option>
> </body>
>
> The output is:
>
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
> <body>
>   <option>option 1
>   <option>option 2
> </body>
>
> <!-- This page was served in 13 milliseconds by Cocoon 1.7.4 -->
>
> Where are my closig option tags?!!! Help!!!
> ----
> Ilya
>
> > Lisa van Gelder wrote:
> >
> > > 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
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
> > > For additional commands, e-mail: cocoon-users-help@xml.apache.org
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
> > For additional commands, e-mail: cocoon-users-help@xml.apache.org
>
> ---------------------------------------------------------------------
> 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