[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
the variable is coming from and XML file. the user inputs in a variable and that variable is inserted in the XML. Thats why i'm having such a problem with this '&'
Ok...so once i get the variable from the user...i'll insert that as a hidden input element. If I do this....I can tell the xslt to look for this hidden input element and get the variable from there. right?
Alice
_________________________________________________________________
MSN 8 with e-mail virus protection service: 2 months FREE* http://join.msn.com/?page=features/virus
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
RE: [xsl] xslt replace special characters
Subject: RE: [xsl] xslt replace special characters From: "Alice Fan" <arisuu@xxxxxxxxxxx> Date: Mon, 11 Nov 2002 12:49:54 -0800 |
the variable is coming from and XML file. the user inputs in a variable and that variable is inserted in the XML. Thats why i'm having such a problem with this '&'
Ok...so once i get the variable from the user...i'll insert that as a hidden input element. If I do this....I can tell the xslt to look for this hidden input element and get the variable from there. right?
Alice
From: "Passin, Tom" <tpassin@xxxxxxxxxxxx> Reply-To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx To: <xsl-list@xxxxxxxxxxxxxxxxxxxxxx> Subject: RE: [xsl] xslt replace special characters Date: Mon, 11 Nov 2002 15:14:05 -0500
[Alice Fan]
> I was looking into the '&' problem somemore. What if I used > CDATA in my XML > file so when its trying to parse it will ignore those special > characters. I > think this might work. Any ideas on this possible solution? >
Just as long as you do not put the PCDATA into an attribute - you cannot put a CDATA section there. You can, of course, put it into the content of an element. I say this because a common way to send xml back to a server is to put it into a hidden input element, and in that case it has to go as the value of the "value" attribute of the hidden field.
Why not just use Javascript to escape the "&" characters?
Cheers,
Tom P
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
.......................................................... Email: arisuu@xxxxxxxxxxx Cell: (650) 483-8164 Work: (212) 201-0881 .........................................................var
_________________________________________________________________
MSN 8 with e-mail virus protection service: 2 months FREE* http://join.msn.com/?page=features/virus
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] xslt replace special char, Passin, Tom | Thread | Re: [xsl] xslt replace special char, Alice Fan |
Re: [xsl] xslt replace special char, Mike Brown | Date | Re: [xsl] xslt replace special char, Alice Fan |
Month |