Subject: RE: [xsl] XSL Javascript prob From: P Vikram <vikram_good_boy@xxxxxxxxx> Date: Thu, 13 Sep 2001 11:43:20 -0700 (PDT) |
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 |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] XSL Javascript prob, P Vikram | Thread | Re: [xsl] XSL Javascript prob, David Carlisle |
Re: [xsl] substring function not ha, Chas Mick | Date | Re: [xsl] dynamicaly build select e, Jörg Heinicke |
Month |