Re: Question about xsl, xml,javascript

Subject: Re: Question about xsl, xml,javascript
From: Phil Lanch <phil@xxxxxxxxxxxxxxx>
Date: Mon, 29 Nov 1999 11:05:53 +0000
DADBHAWALA@xxxxxxx wrote:
> 
> I have been trying to use the following xml and xsl files in ie5
> and have not succeded in doing so. The xsl generates the html with the
> names of the checkboxes with a "A&#13;&#10;"  and thus the javascript code
> does
> not recognize the name of the checkbox
> 
> For example   --> <INPUT align=left name="A&#13;&#10;" type=checkbox>

<snip/>

> File::test.xsl

<snip/>

>                     <input type="checkbox" align="left" >
>                        <xsl:attribute name="name">
>                             <xsl:value-of select="@ID"/>
>                        </xsl:attribute>
>                    </input>

Try putting

<xsl:attribute name="name"><xsl:value-of select="@ID"/></xsl:attribute>

all together (i.e. no with whitespace characters between the
xsl:attribute start & end tags).

&#13;&#10; is a new line (in Windows):
it appears that the new line between the xsl:value-of tag & the
xsl:attribute end tag is being included in the attribute value
(though, for reasons I don't understand, the one between the
xsl:attribute start tag & the xsl:value-of tag isn't).

-- 

cheers

phil

*witness relocation program alumnus*


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread