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

RE: XSL Javascript prob

Subject: RE: XSL Javascript prob
From: "Michael Kay" <mhkay@xxxxxxxxxxxx>
Date: Thu, 13 Sep 2001 08:54:24 +0100
xsl javascript
> The following code adds 5 rows to a javascript
> array.the fifth row being undefined.there is data for
> 4 rows only.

Change it to:
<xsl:template match="child">
 	"<xsl:value-of select="ID"/>"<xsl:text/>
      <xsl:if test="position()!=last()">,
</xsl:if>
</xsl:template>

Mike Kay
> 
> 
> <xsl:stylesheet
> xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
> version="1.0">
> <xsl:output method="text" />
> <xsl:template match="test">
> 	Test_Array = [
> 	<xsl:apply-templates select="//child"/>
> 	]
> </xsl:template>
> 
> <xsl:template match="child">
> 	"<xsl:value-of select="ID"/>",
> </xsl:template>
> </xsl:stylesheet>
> 
> how to restrict the poplate the array with 4 rows of
> ID data only.
> 
> Thanks in adv
> 
> 
> 
> 
> --- Carl Sjogreen <carls@xxxxxxxxxxxxxxx> wrote:
> > Check out www.stylusstudio.com.  Free 90-day
> > evaluation is available from
> > the website.
> > 
> > 	-Carl
> > 
> > > -----Original Message-----
> > > From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> > > [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx]On
> > Behalf Of Jorge Maestre
> > > Sent: Wednesday, September 12, 2001 1:24 PM
> > > To: 'xsl-list@xxxxxxxxxxxxxxxxxxxxxx'
> > > Subject: RE:  Fw: XSL-XML Editor
> > >
> > >
> > > Try these:
> > > - XMLSpy (www.xslspy.com)
> > > - XSLerator
> > (http://www.marrowsoft.com/Products.htm)
> > >
> > >
> > > -----Original Message-----
> > > From: Diego [mailto:diegoesp@xxxxxxxxxxxxx]
> > > Sent: miircoles, 12 de septiembre de 2001 19:08
> > > To: Lista XSL
> > > Subject:  Fw: XSL-XML Editor
> > >
> > >
> > > Hello, does someone know a good XSL/XML Editor?
> > >
> > > I cannot find a good one on the internet...
> > >
> > > -------------------------------------------
> > > Diego
> > >
> > >
> > >  XSL-List info and archive: 
> > http://www.mulberrytech.com/xsl/xsl-list
> > >
> > > This message and any files transmitted with it are
> > confidential
> > > and intended
> > > solely for the use of the individual or entity to
> > whom they are addressed.
> > > No confidentiality or privilege is waived or lost
> > by any wrong
> > > transmission.
> > > If you have received this message in error, please
> > immediately destroy it
> > > and kindly notify the sender by reply email.
> > > You must not, directly or indirectly, use,
> > disclose, distribute, print, or
> > > copy any part of this message if you are not the
> > intended recipient.
> > > Opinions, conclusions and other information in
> > this message that do not
> > > relate to the official business of Newknow shall
> > be understood as neither
> > > given nor endorsed by it.
> > >
> > >
> > >  XSL-List info and archive: 
> > http://www.mulberrytech.com/xsl/xsl-list
> > >
> > >
> > 
> > 
> >  XSL-List info and archive: 
> > http://www.mulberrytech.com/xsl/xsl-list
> > 
> 
> 
> __________________________________________________
> Do You Yahoo!?
> Get email alerts & NEW webcam video instant messaging with 
> Yahoo! Messenger
> http://im.yahoo.com
> 
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
> 

 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.