This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: Text Box Prob
- To: "'xsl-list at lists dot mulberrytech dot com'" <xsl-list at lists dot mulberrytech dot com>
- Subject: RE: [xsl] Text Box Prob
- From: "Hewko, Doug" <Doug dot Hewko at ccra-adrc dot gc dot ca>
- Date: Wed, 5 Sep 2001 12:54:36 -0400
- Cc: "'vikram_good_boy at yahoo dot com'" <vikram_good_boy at yahoo dot com>
- Reply-To: xsl-list at lists dot mulberrytech dot com
Try enclosing the value of your TITLES in a quote, such as the following:
<INPUT maxLength=7 name=test size=14>
<xsl:attribute name="value">
"
<xsl:value-of select="TITLES"/>
"
</xsl:attribute>
> -----Original Message-----
> From: P Vikram [mailto:vikram_good_boy@yahoo.com]
> Sent: September 5, 2001 12:50 PM
> To: xsl-list@lists.mulberrytech.com
> Subject: [xsl] Text Box Prob
>
>
>
>
> Hi
> I have to create a textbox with value from XSL.
>
> <INPUT maxLength=7 name=test size=14>
> <xsl:attribute name="value">
> <xsl:value-of select="TITLES"/>
> </xsl:attribute>
>
> This is giving me an error that:
> A string literal was expected but no opening quote
> character was found.
>
>
> basically i have an div where using javascript iam
> writing innerhtml.
>
> Thanks
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> --- Michael Kay <mhkay@iclway.co.uk> wrote:
> > > given the following XML fragment:
> > >
> > > <strval>
> > > <![CDATA[bla ]]>
> > > </strval>
> > >
> > ... My understanding is that the
> > > parser generates three text nodes:
> > > - one containing the first '\n' after <strval> and
> > a couple of spaces,
> > > - one containing 'bla '
> > > - one with the closing '\n'
> > >
> >
> > No, the parser doesn't generate three text nodes and
> > then merge them. Well,
> > it might, but there is nothing anywhere that says it
> > should.
> >
> > Of course, it would be possible to change the XPath
> > data model so that CDATA
> > boundaries are considered significant in delimiting
> > the strings to be
> > considered as candidates for whitespace elimination;
> > but if CDATA is to be
> > significant for that purpose, people would want it
> > to be significant for
> > lots of other purposes, and you might as well go the
> > whole way of adding
> > CDATA nodes to the model.
> >
> > Mike Kay
> >
> >
> > XSL-List info and archive:
> > http://www.mulberrytech.com/xsl/xsl-list
> >
>
>
> __________________________________________________
> Do You Yahoo!?
> Get email alerts & NEW webcam video instant messaging with
> Yahoo! Messenger
> http://im.yahoo.com
>
> XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
>
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list