cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Lewis, Andrew J" <Andrew.Le...@jbosc.ksc.nasa.gov>
Subject RE: A small bug in the sitemap....
Date Wed, 06 Feb 2002 13:41:54 GMT
cool...thanks....

Just my $0.02 - but I would allow it. While not a particuallry useful
construct for the most part, it isn't necessarily invalid. Leaving it valid
would also be consistent with similar constructs in most programming
languages (or at least the dozen or so I've used)



> ----------
> From: 	Carsten Ziegeler[SMTP:cziegeler@s-und-n.de]
> Reply To: 	cocoon-dev@xml.apache.org
> Sent: 	Wednesday, February 06, 2002 2:51 AM
> To: 	cocoon-dev@xml.apache.org
> Subject: 	RE: A small bug in the sitemap....
> 
> I fixed this problem. Now, it is possible to have only a map:otherwise.
> But perhaps it's better to not allow this and throw an exception instead?
> 
> Carsten
> 
> > -----Original Message-----
> > From: Lewis, Andrew J [mailto:Andrew.Lewis@jbosc.ksc.nasa.gov]
> > Sent: Tuesday, February 05, 2002 8:40 PM
> > To: 'cocoon-dev@xml.apache.org'
> > Subject: A small bug in the sitemap....
> > 
> > 
> > 
> > I accidentally discovered that if you use a <map:select> with only an
> > <xsl:otherwise> and no <xsl:when> tags, the sitemap is generated with
an
> > else but no if and therefore failes to compile. 
> > 
> > Ok, I admit that generally speaking if you only have an 
> > otherwise, why even
> > use a select. However, I happened to have all of the other conditions
> > commented out during development.
> > 
> > I'm sure this has been seen before, and I would consider it a very low
> > priority, but thought you might like to know...
> > 
> > This is on JDK 1.3.1 on Win NT 4, with Cocoon 2.0.1
> > 
> > 
> >       <map:select type="browser">
> >         <!--
> >         <map:when test="wap"> </map:when>
> >         <map:when test="explorer6"> </map:when>
> >         <map:when test="explorer5"> </map:when>
> >         <map:when test="explorer"> </map:when>
> >         <map:when test="mozilla5"> </map:when>
> >         -->
> >         <map:otherwise>
> >           <map:generate src="WEB-INF/profiles/anonymous.xml"/>
> >           <map:transform src="stylesheets/default-other.xsl"/>
> >           <map:serialize/>
> >         </map:otherwise>
> >       </map:select>
> > 
> > 
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
> > For additional commands, email: cocoon-dev-help@xml.apache.org
> > 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
> For additional commands, email: cocoon-dev-help@xml.apache.org
> 

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


Mime
View raw message