[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Counting elements with count() and position()

Subject: Re: Counting elements with count() and position()
From: roman.musil@xxxxxxxxx
Date: Thu, 10 Jul 2003 15:57:28 +0200
xsl counting element
Hi Jeni, Hi David

thank you both for correcting me and sorry for the worng answer

best regards
Roman 
> 
> from: Jeni Tennison <jeni@xxxxxxxxxxxxxxxx>
> date: 2003/07/10 Thu PM 03:38:12 CEST
> to: roman.musil@xxxxxxxxx
> cc: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> subject: Re:  Counting elements with count() and position()
> 
> Hi Roman,
> 
> > your XSL File isn't well-formed, because you can't us '<','>' inside
> > your Styhlesheets, instead use '&lt;' for '<' and '&gt;' for '>'
> >
> > so correct your xsl:when like this
> >
> >  <xsl:when test="$addresscount &gt; 1">urls:</xsl:when>
> 
> Actually, it's perfectly legal to use an unescaped > wherever you want
> in XML (aside from after ]] in element content). Using > within an
> attribute value is always OK. You're correct that < must always be
> escaped, as must &, wherever they occur. ' must be escaped in
> attribute values delimited by ' and similarly " must be escaped in
> attribute values delimited by ", but there's no need to escape them
> otherwise.
> 
> Of course, to be on the safe side, you can escape all these special
> characters wherever you find them, but the situations where an
> unescaped > will cause a problem are few and far between.
> 
> Cheers,
> 
> Jeni
> 
> ---
> Jeni Tennison
> http://www.jenitennison.com/
> 
> 
> 
> from: David Carlisle <davidc@xxxxxxxxx>
> date: 2003/07/10 Thu PM 03:26:48 CEST
> to: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> subject: Re:  Counting elements with count() and position()
> 
> 
> > your XSL File isn't well-formed,
> 
> yes, it is.
> 
> > because you can't us '<','>' inside your Styhlesheets, instead use
> > '&lt;' for '<' and '&gt;' for '>' 
> 
> You can use >.
> 
> David
> 



 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.