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@xxxxxxxxx> 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@xxxxxxxxxxx> 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
| Current Thread |
- XSL Javascript prob, (continued)
- P Vikram - Wed, 12 Sep 2001 20:58:02 -0400 (EDT)
- Chris Bayes - Thu, 13 Sep 2001 03:54:02 -0400 (EDT)
- Chris Bayes - Thu, 13 Sep 2001 05:06:20 -0400 (EDT)
- P Vikram - Thu, 13 Sep 2001 11:45:36 -0400 (EDT)
- P Vikram - Thu, 13 Sep 2001 14:53:41 -0400 (EDT) <=
- David Carlisle - Thu, 13 Sep 2001 17:07:38 -0400 (EDT)
- P Vikram - Sat, 15 Sep 2001 12:10:13 -0400 (EDT)
- Jeni Tennison - Tue, 18 Sep 2001 06:00:38 -0400 (EDT)
- P Vikram - Tue, 18 Sep 2001 12:08:32 -0400 (EDT)
|
|