Re: XML Syntax, Cookies and Variables....

This WebDNA talk-list message is from

2004


It keeps the original formatting.
numero = 58422
interpreted = N
texte = Yes i saw whole manual.. but there's says the main thing is change, for example, ampersand for quoted parameters... you can see that here... All parameters *must* be named, and *must* be quoted, even if they are numeric or have no spaces in them (also a rule of XML). At some point we may even go so far as to require lowercase tag and parameter names, as XML does, in order to help out with future XML editors. And some functions like the setcookie don't work... but with the old syntax, works fine... In some parts of the code, like when you load a variable content, everybody will try to use just the literall, or with quotes, or as much with: "Embedded quotes need to be escaped, also to help with Dreamweaver parsers" But, no one work, i have needed add quotes in stranger way, like this... procced="" And this way, works fine ;) So, theres some good things that can be fixed in the next version or in a patch, and in my opinion, XML is the best syntax.. =) (also, maybe a little better explanation of these diferences can be good in the manual, but all are just opinion =)) Grettings, and thanks everybody for the answers. 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 ----- Original Message ----- From: "Sal D'Anna" To: "WebDNA Talk" Sent: Tuesday, June 15, 2004 3:12 PM Subject: Re: XML Syntax, Cookies and Variables.... > The XML Syntax is not true XML. It was created by SMSI to make the use of > HTML 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 a > primer. We are calling it XML syntax only because it is not HTML and it > tends to follow the guidelines of XML and it looks a lot like XML. It is > basically just the type of syntax that most graphical editors like > Dreamweaver tend to expect, and *not* chew up like the original [classic] > syntax. > > All parameters *must* be named, and *must* be quoted, even if they are > numeric or have no spaces in them (also a rule of XML). At some point we may > even 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, so > they 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 hit > the ending quote. So any embedded quotes you put inside have to be preceded > by \, just like you do in JavaScript. > > > Salvatore D'Anna > DotNetNuke Hosting > > > -----Original Message----- > From: WebDNA Talk [mailto:WebDNA-Talk@talk.smithmicro.com] On Behalf Of > devaulw@onebox.com > Sent: Tuesday, June 15, 2004 8:38 AM > To: WebDNA Talk > Subject: Re: XML Syntax, Cookies and Variables.... > > I'm not sure, but this sounds like XML syntax is broken. Can SMSI let the > list know if these are truly bugs? I had thought about using XML syntax > when 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 user > entered text as well as the ampersand & to avoid early tag termination > and/or other unexpected behavior. > > Is that right? > > Bill > -----Original Message----- > From: Dylan Wood > Sent: Tue, 15 Jun 2004 11:18:22 -0400 > To: (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.html > > If 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 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 to > > Web 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/ --- 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/ Associated Messages, from the most recent to the oldest:

    
  1. Re: XML Syntax, Cookies and Variables.... ( devaulw@onebox.com 2004)
  2. Re: XML Syntax, Cookies and Variables.... ( Dylan Wood 2004)
  3. Re: XML Syntax, Cookies and Variables.... ( "Roberto A. Berrospe Machin" 2004)
  4. Re: XML Syntax, Cookies and Variables.... ( "Scott Anderson" 2004)
  5. Re: XML Syntax, Cookies and Variables.... ( "Roberto A. Berrospe Machin" 2004)
  6. Re: XML Syntax, Cookies and Variables.... ( "Sal D'Anna" 2004)
  7. Re: XML Syntax, Cookies and Variables.... ( "Nitai @ ComputerOil" 2004)
  8. Re: XML Syntax, Cookies and Variables.... ( devaulw@onebox.com 2004)
  9. Re: XML Syntax, Cookies and Variables.... ( Dylan Wood 2004)
  10. XML Syntax, Cookies and Variables.... ( "Roberto A. Berrospe Machin" 2004)
Yes i saw whole manual.. but there's says the main thing is change, for example, ampersand for quoted parameters... you can see that here... All parameters *must* be named, and *must* be quoted, even if they are numeric or have no spaces in them (also a rule of XML). At some point we may even go so far as to require lowercase tag and parameter names, as XML does, in order to help out with future XML editors. And some functions like the setcookie don't work... but with the old syntax, works fine... In some parts of the code, like when you load a variable content, everybody will try to use just the literall, or with quotes, or as much with: "Embedded quotes need to be escaped, also to help with Dreamweaver parsers" But, no one work, i have needed add quotes in stranger way, like this... procced="" And this way, works fine ;) So, theres some good things that can be fixed in the next version or in a patch, and in my opinion, XML is the best syntax.. =) (also, maybe a little better explanation of these diferences can be good in the manual, but all are just opinion =)) Grettings, and thanks everybody for the answers. 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 ----- Original Message ----- From: "Sal D'Anna" To: "WebDNA Talk" Sent: Tuesday, June 15, 2004 3:12 PM Subject: Re: XML Syntax, Cookies and Variables.... > The XML Syntax is not true XML. It was created by SMSI to make the use of > HTML 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 a > primer. We are calling it XML syntax only because it is not HTML and it > tends to follow the guidelines of XML and it looks a lot like XML. It is > basically just the type of syntax that most graphical editors like > Dreamweaver tend to expect, and *not* chew up like the original [classic] > syntax. > > All parameters *must* be named, and *must* be quoted, even if they are > numeric or have no spaces in them (also a rule of XML). At some point we may > even 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, so > they 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 hit > the ending quote. So any embedded quotes you put inside have to be preceded > by \, just like you do in JavaScript. > > > Salvatore D'Anna > DotNetNuke Hosting > > > -----Original Message----- > From: WebDNA Talk [mailto:WebDNA-Talk@talk.smithmicro.com] On Behalf Of > devaulw@onebox.com > Sent: Tuesday, June 15, 2004 8:38 AM > To: WebDNA Talk > Subject: Re: XML Syntax, Cookies and Variables.... > > I'm not sure, but this sounds like XML syntax is broken. Can SMSI let the > list know if these are truly bugs? I had thought about using XML syntax > when 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 user > entered text as well as the ampersand & to avoid early tag termination > and/or other unexpected behavior. > > Is that right? > > Bill > -----Original Message----- > From: Dylan Wood > Sent: Tue, 15 Jun 2004 11:18:22 -0400 > To: (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.html > > If 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 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 to > > Web 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/ --- 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/ "Roberto A. Berrospe Machin"

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:

Sample Tearoom Search Error (1997) Replacing a variable within a variable. (1998) WebCat2 - [format thousands] (1997) Million product store (2003) shownext (1997) WebMerchant 1.6 and SHTML (1997) Re1000002: Setting up shop (1997) Merging databases (1997) First postarg not taking in $Commands (1997) how to use encrypt and searching (1998) pulldown menu differences (2005) Using ticks (2000) TPC Connect (1999) OT- OSX / OSX Server... (2004) I can help! (1996) WCS Newbie question (1997) WebDNA 5 & iTools 7 (2003) listfields question (2005) Web Catalog 2 demo (1997) suffix mapping for NT? (1997)