Re: XML Syntax, Cookies and Variables....
This WebDNA talk-list message is from 2004
It keeps the original formatting.
numero = 58421
interpreted = N
texte = The XML Syntax is not true XML. It was created by SMSI to make the use ofHTML editors easier. The XML Syntax Primer states this in the docs.To give everyone a head start on playing with the new-style syntax, here's aprimer. We are calling it XML syntax only because it is not HTML and ittends to follow the guidelines of XML and it looks a lot like XML. It isbasically just the type of syntax that most graphical editors likeDreamweaver tend to expect, and *not* chew up like the original [classic]syntax. All parameters *must* be named, and *must* be quoted, even if they arenumeric or have no spaces in them (also a rule of XML). At some point we mayeven go so far as to require lowercase tag and parameter names, as XML does,in order to help out with future XML editors.Certain contexts such as [ShowIf] are required to have a named parameter, sothey become:
...Embedded quotes need to be escaped, also to help with Dreamweaver parsers:
">"The idea here is that expr="...a bunch of stuff..." must know when it's hitthe ending quote. So any embedded quotes you put inside have to be precededby \, just like you do in JavaScript. Salvatore D'AnnaDotNetNuke Hosting-----Original Message-----From: WebDNA Talk [mailto:WebDNA-Talk@talk.smithmicro.com] On Behalf Ofdevaulw@onebox.comSent: Tuesday, June 15, 2004 8:38 AMTo: WebDNA TalkSubject: Re: XML Syntax, Cookies and Variables....I'm not sure, but this sounds like XML syntax is broken. Can SMSI let thelist know if these are truly bugs? I had thought about using XML syntaxwhen updating one of my projects but now I can't even consider it. It also seems like we will need to deal with quotes in our variable or userentered text as well as the ampersand & to avoid early tag terminationand/or other unexpected behavior.Is that right?Bill-----Original Message-----From: Dylan Wood Sent: Tue, 15 Jun 2004 11:18:22 -0400To: (WebDNA Talk)Subject: Re: XML Syntax, Cookies and Variables....Roberto-You should add that to the webdna 6.0 reference at:http://webdna.smithmicro.com/ref/index.htmlIf you go to the setcookie and text sections, you can add a user contributed note at the bottom of the page.On Jun 15, 2004, at 11:13 AM, Roberto A. Berrospe Machin wrote:> Hello List.> I have solved another little problem...>> I have this:>> testcookie= name="test">> >>> This does not work... and this does not work too...>> testcookie=this is a test> >> But if i quote the text, then the variable is set fine....>> testcookie="this is a test"> >> There the result is (this is a test), but here is the main problem; if > i try> to quote the getcookie, the variable isnot set... i try with...>> testcookie=" name=test>"> >> With no result, And...>> testcookie=" name=\"test\">"> >> With no result too... The same no result with..>> testcookie= name="test">> >>> But testing and testing, i find that the next code works fine...>> testcookie=" name="test">"> >> That about the quotes is not so good in the syntax.... Works anyway.. > but...> =)>>> Thanks....>> Roberto Antonio Berrospe Machin>> Senior Programer / Developer / Server-Lan Manager> Virtual Job Zone Corporation.> New York - United States> http://www.virtualjobzone.com> roberth@virtualjobzone.com> Tel: 1 - 718 576 2210>>> ---> Outgoing mail is certified Virus Free.> Checked by AVG anti-virus system (http://www.grisoft.com).> Version: 6.0.704 / Virus Database: 460 - Release Date: 12/06/2004>>> -------------------------------------------------------------> This message is sent to you because you are subscribed to> the mailing list .> To unsubscribe, E-mail to: > To switch to the DIGEST mode, E-mail to > > Web Archive of this list is at: http://webdna.smithmicro.com/>-------------------------------------------------------------This message is sent to you because you are subscribed to the mailing list .To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail toWeb Archive of this list is at: http://webdna.smithmicro.com/-------------------------------------------------------------This message is sent to you because you are subscribed to the mailing list .To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail toWeb Archive of this list is at: http://webdna.smithmicro.com/__________ NOD32 1.789 (20040614) Information __________This message was checked by NOD32 Antivirus System.http://www.nod32.com-------------------------------------------------------------This message is sent to you because you are subscribed to the mailing list .To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/
Associated Messages, from the most recent to the oldest:
|
- Re: XML Syntax, Cookies and Variables.... ( devaulw@onebox.com 2004)
- Re: XML Syntax, Cookies and Variables.... ( Dylan Wood 2004)
- Re: XML Syntax, Cookies and Variables.... ( "Roberto A. Berrospe Machin" 2004)
- Re: XML Syntax, Cookies and Variables.... ( "Scott Anderson" 2004)
- Re: XML Syntax, Cookies and Variables.... ( "Roberto A. Berrospe Machin" 2004)
- Re: XML Syntax, Cookies and Variables.... ( "Sal D'Anna" 2004)
- Re: XML Syntax, Cookies and Variables.... ( "Nitai @ ComputerOil" 2004)
- Re: XML Syntax, Cookies and Variables.... ( devaulw@onebox.com 2004)
- Re: XML Syntax, Cookies and Variables.... ( Dylan Wood 2004)
- XML Syntax, Cookies and Variables.... ( "Roberto A. Berrospe Machin" 2004)
|
The XML Syntax is not true XML. It was created by SMSI to make the use ofHTML editors easier. The XML Syntax Primer states this in the docs.To give everyone a head start on playing with the new-style syntax, here's aprimer. We are calling it XML syntax only because it is not HTML and ittends to follow the guidelines of XML and it looks a lot like XML. It isbasically just the type of syntax that most graphical editors likeDreamweaver tend to expect, and *not* chew up like the original [classic]syntax. All parameters *must* be named, and *must* be quoted, even if they arenumeric or have no spaces in them (also a rule of XML). At some point we mayeven go so far as to require lowercase tag and parameter names, as XML does,in order to help out with future XML editors.Certain contexts such as [showif] are required to have a named parameter, sothey become: ...Embedded quotes need to be escaped, also to help with Dreamweaver parsers:">"The idea here is that expr="...a bunch of stuff..." must know when it's hitthe ending quote. So any embedded quotes you put inside have to be precededby \, just like you do in JavaScript. Salvatore D'AnnaDotNetNuke Hosting-----Original Message-----From: WebDNA Talk [mailto:WebDNA-Talk@talk.smithmicro.com] On Behalf Ofdevaulw@onebox.comSent: Tuesday, June 15, 2004 8:38 AMTo: WebDNA TalkSubject: Re: XML Syntax, Cookies and Variables....I'm not sure, but this sounds like XML syntax is broken. Can SMSI let thelist know if these are truly bugs? I had thought about using XML syntaxwhen updating one of my projects but now I can't even consider it. It also seems like we will need to deal with quotes in our variable or userentered text as well as the ampersand & to avoid early tag terminationand/or other unexpected behavior.Is that right?Bill-----Original Message-----From: Dylan Wood Sent: Tue, 15 Jun 2004 11:18:22 -0400To: (WebDNA Talk)Subject: Re: XML Syntax, Cookies and Variables....Roberto-You should add that to the webdna 6.0 reference at:http://webdna.smithmicro.com/ref/index.htmlIf you go to the setcookie and text sections, you can add a user contributed note at the bottom of the page.On Jun 15, 2004, at 11:13 AM, Roberto A. Berrospe Machin wrote:> Hello List.> I have solved another little problem...>> I have this:>> testcookie= name="test">> >>> This does not work... and this does not work too...>> testcookie=this is a test> >> But if i quote the text, then the variable is set fine....>> testcookie="this is a test"> >> There the result is (this is a test), but here is the main problem; if > i try> to quote the getcookie, the variable isnot set... i try with...>> testcookie=" name=test>"> >> With no result, And...>> testcookie=" name=\"test\">"> >> With no result too... The same no result with..>> testcookie= name="test">> >>> But testing and testing, i find that the next code works fine...>> testcookie=" name="test">"> >> That about the quotes is not so good in the syntax.... Works anyway.. > but...> =)>>> Thanks....>> Roberto Antonio Berrospe Machin>> Senior Programer / Developer / Server-Lan Manager> Virtual Job Zone Corporation.> New York - United States> http://www.virtualjobzone.com> roberth@virtualjobzone.com> Tel: 1 - 718 576 2210>>> ---> Outgoing mail is certified Virus Free.> Checked by AVG anti-virus system (http://www.grisoft.com).> Version: 6.0.704 / Virus Database: 460 - Release Date: 12/06/2004>>> -------------------------------------------------------------> This message is sent to you because you are subscribed to> the mailing list .> To unsubscribe, E-mail to: > To switch to the DIGEST mode, E-mail to > > Web Archive of this list is at: http://webdna.smithmicro.com/>-------------------------------------------------------------This message is sent to you because you are subscribed to the mailing list .To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail toWeb Archive of this list is at: http://webdna.smithmicro.com/-------------------------------------------------------------This message is sent to you because you are subscribed to the mailing list .To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail toWeb Archive of this list is at: http://webdna.smithmicro.com/__________ NOD32 1.789 (20040614) Information __________This message was checked by NOD32 Antivirus System.http://www.nod32.com-------------------------------------------------------------This message is sent to you because you are subscribed to the mailing list .To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/
"Sal D'Anna"
DOWNLOAD WEBDNA NOW!
Top Articles:
Talk List
The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...
Related Readings:
IE Cache Problems... (1999)
cart info (1998)
formulas.db problem solved (1998)
New Mac Public Beta Available (1997)
Date in IF ELSE Comparison (2004)
[searchString] (1997)
Multiple 'Users.db' files not possible (1997)
formula's (1998)
Limiting user access to .tmpl files (1997)
AND/OR searches in WebCat 3.07 (2003)
[ShowIf] and empty fields (1997)
World Address Info (2003)
Up and running ... at last !! (1997)
Running _every_ page through WebCat-error.html (1997)
Help with database strategy (1998)
WebCat2b13 Mac plugin - [sendmail] and checkboxes (1997)
Web Cat not returning html? (2000)
WebCat2b12--[searchstring] bug (1997)
CGI and SSI (2002)
Quit revisited (1997)