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: P Vikram <vikram_good_boy at yahoo dot com>
- Date: Thu, 13 Sep 2001 11:43:20 -0700 (PDT)
- Reply-To: xsl-list at lists dot mulberrytech dot com
Hi
I have two columns of data <id> & <name> .i want to
build an array with aletrnate elements of array
containing the id and name elements.
<xsl:stylesheet
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<xsl:output method="text" />
<xsl:template match="testnode">
lineitemtypecodearray = [
<xsl:apply-templates select="//data"/>
]
</xsl:template>
<xsl:template match="data">
"<xsl:value-of select="ID"/>""<xsl:value-of
select="NAME"/>",
</xsl:template>
</xsl:stylesheet>
is giving and error...any ideas
Thanks in adv
--- P Vikram <vikram_good_boy@yahoo.com> wrote:
> Hi
>
> Thanx for the replies...but for all of them iam
> getting the following error:
>
>
javax.xml.transform.TransformerConfigurationException:
> "test" attribute is not allowed on the xsl:if
> element!
>
> Thanks
>
> Vikram
> --- Chris Bayes <chris@bayes.co.uk> wrote:
> > Doh!
> > "<xsl:value-of select="@ID"/>"<xsl:if
> > test="not(position()=last())">,</xsl:if>
> >
> > XML/XSL Portal
> > http://www.bayes.co.uk/xml
> >
> >
> > XSL-List info and archive:
> > http://www.mulberrytech.com/xsl/xsl-list
> >
>
>
> __________________________________________________
> Terrorist Attacks on U.S. - How can you help?
> Donate cash, emergency relief information
>
http://dailynews.yahoo.com/fc/US/Emergency_Information/
>
> XSL-List info and archive:
> http://www.mulberrytech.com/xsl/xsl-list
>
__________________________________________________
Terrorist Attacks on U.S. - How can you help?
Donate cash, emergency relief information
http://dailynews.yahoo.com/fc/US/Emergency_Information/
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list