This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: XSL Javascript prob
- To: <xsl-list at lists dot mulberrytech dot com>
- Subject: RE: [xsl] XSL Javascript prob
- From: "Michael Kay" <mhkay at iclway dot co dot uk>
- Date: Thu, 13 Sep 2001 08:54:24 +0100
- Reply-To: xsl-list at lists dot mulberrytech dot com
> 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