This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: XSL Javascript prob


> 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@exceloncorp.com> wrote:
> > Check out www.stylusstudio.com.  Free 90-day
> > evaluation is available from
> > the website.
> > 
> > 	-Carl
> > 
> > > -----Original Message-----
> > > From: owner-xsl-list@lists.mulberrytech.com
> > > [mailto:owner-xsl-list@lists.mulberrytech.com]On
> > Behalf Of Jorge Maestre
> > > Sent: Wednesday, September 12, 2001 1:24 PM
> > > To: 'xsl-list@lists.mulberrytech.com'
> > > Subject: RE: [xsl] Fw: XSL-XML Editor
> > >
> > >
> > > Try these:
> > > - XMLSpy (www.xslspy.com)
> > > - XSLerator
> > (http://www.marrowsoft.com/Products.htm)
> > >
> > >
> > > -----Original Message-----
> > > From: Diego [mailto:diegoesp@grupoa.com.ar]
> > > Sent: miircoles, 12 de septiembre de 2001 19:08
> > > To: Lista XSL
> > > Subject: [xsl] 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]