Re: [OT] XML Primer
This WebDNA talk-list message is from 2004
It keeps the original formatting.
numero = 57715
interpreted = N
texte = Sal, have you considered teaching? Seriously.-DanOn Fri, 7 May 2004 18:49:22 -0700 "Sal"
wrote:>It depends on the purpose of the XML file. >For example, we have a db that has all CD's that are currently instock.>We want to create an XML file for our distributors so they always have>current list. We direct our distributors to go the music.tpl file for the>latest version of the CD list.>>XML/XSLT tutorial in the WebDNALab shows how to make the music.db file from>an XML file. Here is the example to create the XML doc from the same>music.db.>>[!]The Music.tpl file[/!]>[Search db=music.db&neTITLEdatarq=[blank]]>[WriteFile file=music.xml&secure=F]>>[FOUNDITEMS]>>[TITLE]>[ARTIST]>[/founditems]>[/WriteFile]>[/Search]>[!]Let's view our new XML file[/!]>[redirect url=music.xml]>>The new XML file is always updated with the latest database changes whenever>the music.tpl template is rendered.>>The Result> >- >- > Bridge of Spies > T`Pau > >- > The dock of the bay > Otis Redding > >- > Black angel > Savage Rose > >- > The very best of > Cat Stevens > >- > Unchain my heart > Joe Cocker > >- > Romanza > Andrea Bocelli > >- > Midt om natten > Kim Larsen > >- > Eros > Eros Ramazzotti > >- > Red > The Communards > >- > For the good times > Kenny Rogers > >- > Soulsville > Jorn Hoel > >- > Big Willie style > Will Smith > >- > Maggie May > Rod Stewart > >- > Stop > Sam Brown > >- > Still got the blues > Gary More > >- > Private Dancer > Tina Turner > >- > When a man loves a woman > Percy Sledge > >- > Pavarotti Gala Concert > Luciano Pavarotti > >- > Hide your heart > Bonnie Tylor > >- > Picture book > Simply Red > >- > 1999 Grammy Nominees > Many > >- > One night only > Bee Gees > >- > Empire Burlesque > Bob Dylan > >- > Greatest Hits > Dolly Parton > >- > Sylvias Mother > Dr.Hook > >- > Tupelo Honey > Van Morrison > > >>Hope this helps,>>Sal D'Anna>>-----Original Message----->From: WebDNA Talk [mailto:WebDNA-Talk@talk.smithmicro.com] On Behalf Of Alan>White>Sent: Friday, May 07, 2004 2:22 AM>To: WebDNA Talk>Subject: Re: [OT] XML Primer>>I found a really good tutorial on http://www.htmlite.com>>The only thing I am still struggling with is applying what I have learned, I>know how to create an xml file and I can also create the xlst etc but where>is get stuck is populating my xml file. I don't know if this is supposed to>be done on the fly by pulling info from a db and writing it to a file.>>Anyone care to shed some light?>>HTH>>Alan>>on 5/6/04 8:03 PM, Dan Strong at webdna@stronggraphicdesign.com wrote:>>> Howdy all,>> >> I need to be up to speed with XML by early next week... any good>(preferrably>> free) online >> resources you guys would recommend I check out to get me started and then>any>> books for the long>> haul?>> >> TIA,>> >> -Dan>> >> ------------------------------------------------------------->> 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.752 (20040506) 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/-------------------------------------------------------------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:
Sal, have you considered teaching? Seriously.-DanOn Fri, 7 May 2004 18:49:22 -0700 "Sal" wrote:>It depends on the purpose of the XML file. >For example, we have a db that has all CD's that are currently instock.>We want to create an XML file for our distributors so they always have>current list. We direct our distributors to go the music.tpl file for the>latest version of the CD list.>>XML/XSLT tutorial in the WebDNALab shows how to make the music.db file from>an XML file. Here is the example to create the XML doc from the same>music.db.>>[!]The Music.tpl file[/!]>[Search db=music.db&neTITLEdatarq=[blank]]>[WriteFile file=music.xml&secure=F]>>[founditems]>>[TITLE]>[ARTIST]>[/founditems]>[/WriteFile]>[/Search]>[!]Let's view our new XML file[/!]>[redirect url=music.xml]>>The new XML file is always updated with the latest database changes whenever>the music.tpl template is rendered.>>The Result> >- >- > Bridge of Spies > T`Pau > >- > The dock of the bay > Otis Redding > >- > Black angel > Savage Rose > >- > The very best of > Cat Stevens > >- > Unchain my heart > Joe Cocker > >- > Romanza > Andrea Bocelli > >- > Midt om natten > Kim Larsen > >- > Eros > Eros Ramazzotti > >- > Red > The Communards > >- > For the good times > Kenny Rogers > >- > Soulsville > Jorn Hoel > >- > Big Willie style > Will Smith > >- > Maggie May > Rod Stewart > >- > Stop > Sam Brown > >- > Still got the blues > Gary More > >- > Private Dancer > Tina Turner > >- > When a man loves a woman > Percy Sledge > >- > Pavarotti Gala Concert > Luciano Pavarotti > >- > Hide your heart > Bonnie Tylor > >- > Picture book > Simply Red > >- > 1999 Grammy Nominees > Many > >- > One night only > Bee Gees > >- > Empire Burlesque > Bob Dylan > >- > Greatest Hits > Dolly Parton > >- > Sylvias Mother > Dr.Hook > >- > Tupelo Honey > Van Morrison > > >>Hope this helps,>>Sal D'Anna>>-----Original Message----->From: WebDNA Talk [mailto:WebDNA-Talk@talk.smithmicro.com] On Behalf Of Alan>White>Sent: Friday, May 07, 2004 2:22 AM>To: WebDNA Talk>Subject: Re: [OT] XML Primer>>I found a really good tutorial on http://www.htmlite.com>>The only thing I am still struggling with is applying what I have learned, I>know how to create an xml file and I can also create the xlst etc but where>is get stuck is populating my xml file. I don't know if this is supposed to>be done on the fly by pulling info from a db and writing it to a file.>>Anyone care to shed some light?>>HTH>>Alan>>on 5/6/04 8:03 PM, Dan Strong at webdna@stronggraphicdesign.com wrote:>>> Howdy all,>> >> I need to be up to speed with XML by early next week... any good>(preferrably>> free) online >> resources you guys would recommend I check out to get me started and then>any>> books for the long>> haul?>> >> TIA,>> >> -Dan>> >> ------------------------------------------------------------->> 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.752 (20040506) 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/-------------------------------------------------------------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/
"Dan Strong"
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:
WebCat & WebTen (1997)
Before I Can Begin . . . (1998)
WebCatalog Work (2001)
Pithy questions on webcommerce & siteedit (1997)
[WebDNA] Difference in time calculations (2017)
NewCart+Search with one click ? (1997)
HTML encoding in URLs (1997)
About Include (2001)
Open Market's Transact & Macintosh (1998)
Re2: frames & carts (1997)
WebCatalog [FoundItems] Problem - AGAIN - (1997)
WebCatalog2 Feature Feedback (1996)
Word Breaks (1998)
can WC render sites out? (1997)
possible, WebCat2.0 and checkboxes-restated (1997)
webstar (ot) (2001)
WebCat2b15MacPlugin - [protect] (1997)
CSS in HTML emails? (2003)
MATH PROBLEM (1997)
Wrapping text (1998)