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


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


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