RE: XML Best Practices - Resources
Just because I like a certain format, doesn't mean it's the best way to do it. A good analogy is how data is stored in a database. Sure, I can store a persons full name in one field of my db, but it's better to store first, middle, and last names separately. So, I'm wondering if there are Best Practices when storing certain types of info (credit cards, phone numbers, currency, etc.) in XML. -Brad -Original Message- From: Bryan F. Hogan [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 13, 2003 3:17 PM To: CF-Talk Subject: RE: XML Best Practices - Resources Since XML is extensible it's up to you to create a format that you like. Whatever is easiest for you as long as you stick to the rules of XML. To learn more about the rules of XML. Check out the W3C site or http://www.w3schools.com/ for an overview. -Original Message- From: Brad Roberts [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 13, 2003 3:09 PM To: CF-Talk Subject: XML Best Practices - Resources What's the best way to store phone numbers in XML? phone1234567890/phone or maybe... phone title=Main number=1234567890 ext=10 type=Mobile/ Is there a standard? Best practice? Does anyone know of resources that would include best practices like this, with examples (not just for phone numbers)? -Brad ~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Signup for the Fusion Authority news alert and keep up with the latest news in ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: XML Best Practices - Resources
Brad Roberts wrote: What's the best way to store phone numbers in XML? phone1234567890/phone or maybe... phone title=Main number=1234567890 ext=10 type=Mobile/ Is there a standard? ITU E164 (http://www.itu.int/) is the standard defining the format of a phone number. That would be a good place to start. Jochem ~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Get the mailserver that powers this list at http://www.coolfusion.com Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: XML Best Practices - Resources
Can you elaborate on why? I've not done any xslt transformations. Is it because of the way you have to reference attributes? -Brad -Original Message- From: Tony Weeg [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 13, 2003 3:32 PM To: CF-Talk Subject: RE: XML Best Practices - Resources I know that when I had to use xslt to display some xml that this was easier to show phone type=home country??/country citycodecitycode area916/area exchange338/exchange number1234/number extension34/extionsion /phone in html format (parsed through xslt) than it was to pick these out... phone title=Main number=1234567890 ext=10 type=Mobile/ just my travels. tony weeg uncertified advanced cold fusion developer tony at navtrak dot net www.navtrak.net office 410.548.2337 fax 410.860.2337 -Original Message- From: Ian Skinner [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 13, 2003 3:22 PM To: CF-Talk Subject: RE: XML Best Practices - Resources Or you could do this phone type=home country??/country citycodecitycode area916/area exchange338/exchange number1234/number extension34/extionsion /phone I'm not sure about best practices... but I do remember from my XML studies, it depends on what your needs are, and designing the XML document is the real challenge/art. Parsing it afterwards is easy. -- Ian Skinner Web Programmer BloodSource Sacramento, CA -Original Message- From: Brad Roberts [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 13, 2003 12:09 PM To: CF-Talk Subject: XML Best Practices - Resources What's the best way to store phone numbers in XML? phone1234567890/phone or maybe... phone title=Main number=1234567890 ext=10 type=Mobile/ Is there a standard? Best practice? Does anyone know of resources that would include best practices like this, with examples (not just for phone numbers)? -Brad ~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Get the mailserver that powers this list at http://www.coolfusion.com Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: XML Best Practices - Resources
There's one significant difference between attributes and tag content. Tag content allows the possibility of extension via further subdivision in the future. For example, phone number=123-555-/, unlike phone number123-555-/number /phone cannot be extended to phone areaCode123/areaCode number555-/number /phone Attributes are more succinct. In my own usage, I prefer to use tags for data, and attributes for metadata -- data which describes the data --- Michael T. Tangorre [EMAIL PROTECTED] wrote: I have been reading up on XML and there seems to be alot of people that favor more of an element approach as apposed to an attribute approach. phone typemobile/type number555-555-/number extension1234/extension /phone Mike = I-Lin Kuo Macromedia CF5 Advanced Developer Sun Certified Java 2 Programmer __ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com ~| Archives: http://www.houseoffusion.com/lists.cfm?link=t:4 Subscription: http://www.houseoffusion.com/lists.cfm?link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 This list and all House of Fusion resources hosted by CFHosting.com. The place for dependable ColdFusion Hosting. http://www.cfhosting.com
Re: XML Best Practices - Resources
But couldn't phone number=123-555-/, be extended to phone number=555- areacode=123/? Just a thought :) - Calvin - Original Message - From: I-Lin Kuo [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Sent: Thursday, August 14, 2003 7:15 AM Subject: Re: XML Best Practices - Resources There's one significant difference between attributes and tag content. Tag content allows the possibility of extension via further subdivision in the future. For example, phone number=123-555-/, unlike phone number123-555-/number /phone cannot be extended to phone areaCode123/areaCode number555-/number /phone Attributes are more succinct. In my own usage, I prefer to use tags for data, and attributes for metadata -- data which describes the data --- Michael T. Tangorre [EMAIL PROTECTED] wrote: I have been reading up on XML and there seems to be alot of people that favor more of an element approach as apposed to an attribute approach. phone typemobile/type number555-555-/number extension1234/extension /phone Mike = I-Lin Kuo Macromedia CF5 Advanced Developer Sun Certified Java 2 Programmer __ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com ~| Archives: http://www.houseoffusion.com/lists.cfm?link=t:4 Subscription: http://www.houseoffusion.com/lists.cfm?link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 This list and all House of Fusion resources hosted by CFHosting.com. The place for dependable ColdFusion Hosting. http://www.cfhosting.com
RE: OT- RE: XML Best Practices - Resources
there is one in the yahoo groups...xsl-fo I think? tony weeg uncertified advanced cold fusion developer tony at navtrak dot net www.navtrak.net office 410.548.2337 fax 410.860.2337 -Original Message- From: Bruce Rojas-Rennke [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 13, 2003 3:26 PM To: CF-Talk Subject: OT- RE: XML Best Practices - Resources Sorry if this is too off-topic, but does anyone know of a good xsl/xslt forum? thanks- -Original Message- From: Bryan F. Hogan [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 13, 2003 1:17 PM To: CF-Talk Subject: RE: XML Best Practices - Resources Since XML is extensible it's up to you to create a format that you like. Whatever is easiest for you as long as you stick to the rules of XML. To learn more about the rules of XML. Check out the W3C site or http://www.w3schools.com/ for an overview. -Original Message- From: Brad Roberts [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 13, 2003 3:09 PM To: CF-Talk Subject: XML Best Practices - Resources What's the best way to store phone numbers in XML? phone1234567890/phone or maybe... phone title=Main number=1234567890 ext=10 type=Mobile/ Is there a standard? Best practice? Does anyone know of resources that would include best practices like this, with examples (not just for phone numbers)? -Brad ~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Get the mailserver that powers this list at http://www.coolfusion.com Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: XML Best Practices - Resources
It's getting late. Good Luck to me? -Original Message- From: Tony Weeg [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 13, 2003 4:46 PM To: CF-Talk Subject: RE: XML Best Practices - Resources yeh, but I moved on, got what I needed to work to work, and now looking back it wasn't soo crazy hard, just needed the right assistance! good luck!!! tony tony weeg uncertified advanced cold fusion developer tony at navtrak dot net www.navtrak.net office 410.548.2337 fax 410.860.2337 -Original Message- From: Bryan F. Hogan [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 13, 2003 4:37 PM To: CF-Talk Subject: RE: XML Best Practices - Resources I feel your pain. It took me a week when I first started with XML to figure out the attribute select. -Original Message- From: Tony Weeg [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 13, 2003 4:34 PM To: CF-Talk Subject: RE: XML Best Practices - Resources yeh, all that gobbledyGOOP xsl:value-of select=[EMAIL PROTECTED]/ at the time, was just more than I felt like devouring...so, I loved the simple value-of's ... plus I was dealing with multiple rows/attributes and had to loop through them all, and at the time I was finishing a huge project and teaching myself :) tony weeg uncertified advanced cold fusion developer tony at navtrak dot net www.navtrak.net office 410.548.2337 fax 410.860.2337 ~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Signup for the Fusion Authority news alert and keep up with the latest news in ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: XML Best Practices - Resources
yeh, all that gobbledyGOOP xsl:value-of select=[EMAIL PROTECTED]/ at the time, was just more than I felt like devouring...so, I loved the simple value-of's ... plus I was dealing with multiple rows/attributes and had to loop through them all, and at the time I was finishing a huge project and teaching myself :) tony weeg uncertified advanced cold fusion developer tony at navtrak dot net www.navtrak.net office 410.548.2337 fax 410.860.2337 -Original Message- From: Bryan F. Hogan [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 13, 2003 4:20 PM To: CF-Talk Subject: RE: XML Best Practices - Resources XSLT select attribute: xsl:value-of select=[EMAIL PROTECTED]/ XSLT select text: xsl:value-of select=posteremail/ with an example of ?xml version=1.0 encoding=UTF-8? posteremail id=1myemail/posteremail -Original Message- From: Tony Weeg [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 13, 2003 4:13 PM To: CF-Talk Subject: RE: XML Best Practices - Resources probably my own stupidity or ignorance at the time, but it was very easy to show elements that were their own tag pairs versus attributes of a single tag. why, I forget :( sorry, but maybe someone could show us the difference. of how, in xslt you would reference the data in the one versus the other, maybe it was just my own ignorance, but for some reason, most of the xml that I have ever seen has been tag-pairs, versus attributes of one tag. sorry I don't know why, it was like 8 months ago tony weeg uncertified advanced cold fusion developer tony at navtrak dot net www.navtrak.net office 410.548.2337 fax 410.860.2337 ~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Your ad could be here. Monies from ads go to support these lists and provide more resources for the community. http://www.fusionauthority.com/ads.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: XML Best Practices - Resources
yeh, but I moved on, got what I needed to work to work, and now looking back it wasn't soo crazy hard, just needed the right assistance! good luck!!! tony tony weeg uncertified advanced cold fusion developer tony at navtrak dot net www.navtrak.net office 410.548.2337 fax 410.860.2337 -Original Message- From: Bryan F. Hogan [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 13, 2003 4:37 PM To: CF-Talk Subject: RE: XML Best Practices - Resources I feel your pain. It took me a week when I first started with XML to figure out the attribute select. -Original Message- From: Tony Weeg [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 13, 2003 4:34 PM To: CF-Talk Subject: RE: XML Best Practices - Resources yeh, all that gobbledyGOOP xsl:value-of select=[EMAIL PROTECTED]/ at the time, was just more than I felt like devouring...so, I loved the simple value-of's ... plus I was dealing with multiple rows/attributes and had to loop through them all, and at the time I was finishing a huge project and teaching myself :) tony weeg uncertified advanced cold fusion developer tony at navtrak dot net www.navtrak.net office 410.548.2337 fax 410.860.2337 ~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Get the mailserver that powers this list at http://www.coolfusion.com Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: XML Best Practices - Resources
Or you could do this phone type=home country??/country citycodecitycode area916/area exchange338/exchange number1234/number extension34/extionsion /phone I'm not sure about best practices... but I do remember from my XML studies, it depends on what your needs are, and designing the XML document is the real challenge/art. Parsing it afterwards is easy. -- Ian Skinner Web Programmer BloodSource Sacramento, CA -Original Message- From: Brad Roberts [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 13, 2003 12:09 PM To: CF-Talk Subject: XML Best Practices - Resources What's the best way to store phone numbers in XML? phone1234567890/phone or maybe... phone title=Main number=1234567890 ext=10 type=Mobile/ Is there a standard? Best practice? Does anyone know of resources that would include best practices like this, with examples (not just for phone numbers)? -Brad ~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq This list and all House of Fusion resources hosted by CFHosting.com. The place for dependable ColdFusion Hosting. http://www.cfhosting.com Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: XML Best Practices - Resources
I have been reading up on XML and there seems to be alot of people that favor more of an element approach as apposed to an attribute approach. phone typemobile/type number555-555-/number extension1234/extension /phone Mike - Original Message - From: Brad Roberts [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Sent: Wednesday, August 13, 2003 3:08 PM Subject: XML Best Practices - Resources What's the best way to store phone numbers in XML? phone1234567890/phone or maybe... phone title=Main number=1234567890 ext=10 type=Mobile/ Is there a standard? Best practice? Does anyone know of resources that would include best practices like this, with examples (not just for phone numbers)? -Brad ~| Archives: http://www.houseoffusion.com/lists.cfm?link=t:4 Subscription: http://www.houseoffusion.com/lists.cfm?link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Signup for the Fusion Authority news alert and keep up with the latest news in ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm
Re: XML Best Practices - Resources
Brad Roberts [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] What's the best way to store phone numbers in XML? phone1234567890/phone or maybe... phone title=Main number=1234567890 ext=10 type=Mobile/ Is there a standard? Best practice? Does anyone know of resources that would include best practices like this, with examples (not just for phone numbers)? For a detailed coverage of XML, including a good amount of common sense, you may try XML Bible, for best practices there is an upcoming book that should be worth a check: Effective XML: 50 Specific Ways to Improve Your XML by Elliotte Rusty Harold Paperback - 336 pages (September 2003) Addison-Wesley ISBN: 0321150406 Massimo Foti Certified Dreamweaver MX Developer Certified Advanced ColdFusion MX Developer http://www.massimocorner.com/ ~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Get the mailserver that powers this list at http://www.coolfusion.com Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: XML Best Practices - Resources
probably my own stupidity or ignorance at the time, but it was very easy to show elements that were their own tag pairs versus attributes of a single tag. why, I forget :( sorry, but maybe someone could show us the difference. of how, in xslt you would reference the data in the one versus the other, maybe it was just my own ignorance, but for some reason, most of the xml that I have ever seen has been tag-pairs, versus attributes of one tag. sorry I don't know why, it was like 8 months ago tony weeg uncertified advanced cold fusion developer tony at navtrak dot net www.navtrak.net office 410.548.2337 fax 410.860.2337 -Original Message- From: Brad Roberts [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 13, 2003 3:46 PM To: CF-Talk Subject: RE: XML Best Practices - Resources Can you elaborate on why? I've not done any xslt transformations. Is it because of the way you have to reference attributes? -Brad -Original Message- From: Tony Weeg [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 13, 2003 3:32 PM To: CF-Talk Subject: RE: XML Best Practices - Resources I know that when I had to use xslt to display some xml that this was easier to show phone type=home country??/country citycodecitycode area916/area exchange338/exchange number1234/number extension34/extionsion /phone in html format (parsed through xslt) than it was to pick these out... phone title=Main number=1234567890 ext=10 type=Mobile/ just my travels. tony weeg uncertified advanced cold fusion developer tony at navtrak dot net www.navtrak.net office 410.548.2337 fax 410.860.2337 -Original Message- From: Ian Skinner [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 13, 2003 3:22 PM To: CF-Talk Subject: RE: XML Best Practices - Resources Or you could do this phone type=home country??/country citycodecitycode area916/area exchange338/exchange number1234/number extension34/extionsion /phone I'm not sure about best practices... but I do remember from my XML studies, it depends on what your needs are, and designing the XML document is the real challenge/art. Parsing it afterwards is easy. -- Ian Skinner Web Programmer BloodSource Sacramento, CA -Original Message- From: Brad Roberts [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 13, 2003 12:09 PM To: CF-Talk Subject: XML Best Practices - Resources What's the best way to store phone numbers in XML? phone1234567890/phone or maybe... phone title=Main number=1234567890 ext=10 type=Mobile/ Is there a standard? Best practice? Does anyone know of resources that would include best practices like this, with examples (not just for phone numbers)? -Brad ~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Signup for the Fusion Authority news alert and keep up with the latest news in ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: XML Best Practices - Resources
No it doesn't, that's why I sent you to the W3C and w3schools. It still all boils down to what is easiest for you. -Original Message- From: Brad Roberts [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 13, 2003 3:37 PM To: CF-Talk Subject: RE: XML Best Practices - Resources Just because I like a certain format, doesn't mean it's the best way to do it. A good analogy is how data is stored in a database. Sure, I can store a persons full name in one field of my db, but it's better to store first, middle, and last names separately. So, I'm wondering if there are Best Practices when storing certain types of info (credit cards, phone numbers, currency, etc.) in XML. -Brad -Original Message- From: Bryan F. Hogan [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 13, 2003 3:17 PM To: CF-Talk Subject: RE: XML Best Practices - Resources Since XML is extensible it's up to you to create a format that you like. Whatever is easiest for you as long as you stick to the rules of XML. To learn more about the rules of XML. Check out the W3C site or http://www.w3schools.com/ for an overview. -Original Message- From: Brad Roberts [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 13, 2003 3:09 PM To: CF-Talk Subject: XML Best Practices - Resources What's the best way to store phone numbers in XML? phone1234567890/phone or maybe... phone title=Main number=1234567890 ext=10 type=Mobile/ Is there a standard? Best practice? Does anyone know of resources that would include best practices like this, with examples (not just for phone numbers)? -Brad ~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Signup for the Fusion Authority news alert and keep up with the latest news in ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: XML Best Practices - Resources
Thanks, Jon. This is right along the lines of what I'm looking for. Anyone know of more resources like this one? -Brad -Original Message- From: jon hall [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 13, 2003 3:29 PM To: CF-Talk Subject: Re: XML Best Practices - Resources When I have these questions, I usually check what ebXML says about it. http://www.ebxml.org/specs/ebrim2.pdf Click on Class TelephoneNumber in the Bookmarks. If only there was a similar object/method naming standard, I'd be a happy man. -- jon mailto:[EMAIL PROTECTED] Wednesday, August 13, 2003, 3:08:49 PM, you wrote: BR What's the best way to store phone numbers in XML? BR phone1234567890/phone BR or maybe... BR phone title=Main number=1234567890 ext=10 type=Mobile/ BR Is there a standard? Best practice? BR Does anyone know of resources that would include best practices like this, BR with examples (not just for phone numbers)? BR -Brad BR ~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq This list and all House of Fusion resources hosted by CFHosting.com. The place for dependable ColdFusion Hosting. http://www.cfhosting.com Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: XML Best Practices - Resources
What's the best way to store phone numbers in XML? phone1234567890/phone or maybe... phone title=Main number=1234567890 ext=10 type=Mobile/ Brad, I can't tell you what's best, but I can tell you how I would approach it. Proceed only after you have procured several thousand grains of salt. Personally, I'd start by clarifying what I'm describing. A phone has attributes like white, hasCord, and so on. What you're actually dealing with isn't a phone but a phone number, which has attributes like mobile and extension 312. The number itself is the thing that interests us. So here's where I'd end up: phone type=mobile ext=101234567890/phone However, looking at that, I see I'm asserting that 1234567890 is an instance of a phone. And we've already established that it isn't. To clarify *that*, I would end up with: phone number type=mobile ext=101234567890/number /phone ...or... phonenumber type=mobile ext=101234567890/phonenumber Choosing between them would be a matter of considering how detailed I want to be in compiling this info. The latter will work fine, nine times out of ten. But there are edge cases... for example, what if I can be reached at a single, physical phone via two distinct numbers with distinctive rings? It might be useful to know that those numbers are related: phone number type=business1234567890/number number type=home0987654321/number /phone phone number type=mobile5498763210/number /phone At that point, I'd probably call it good enough. But that's good enough for me, not anyone else. -- Roger Benningfield JournURL community-powered weblogs diaries work: http://journurl.com/ blog: http://admin.support.journurl.com/ ~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Signup for the Fusion Authority news alert and keep up with the latest news in ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: XML Best Practices - Resources
I feel your pain. It took me a week when I first started with XML to figure out the attribute select. -Original Message- From: Tony Weeg [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 13, 2003 4:34 PM To: CF-Talk Subject: RE: XML Best Practices - Resources yeh, all that gobbledyGOOP xsl:value-of select=[EMAIL PROTECTED]/ at the time, was just more than I felt like devouring...so, I loved the simple value-of's ... plus I was dealing with multiple rows/attributes and had to loop through them all, and at the time I was finishing a huge project and teaching myself :) tony weeg uncertified advanced cold fusion developer tony at navtrak dot net www.navtrak.net office 410.548.2337 fax 410.860.2337 ~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Signup for the Fusion Authority news alert and keep up with the latest news in ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: XML Best Practices - Resources
When I have these questions, I usually check what ebXML says about it. http://www.ebxml.org/specs/ebrim2.pdf Click on Class TelephoneNumber in the Bookmarks. If only there was a similar object/method naming standard, I'd be a happy man. -- jon mailto:[EMAIL PROTECTED] Wednesday, August 13, 2003, 3:08:49 PM, you wrote: BR What's the best way to store phone numbers in XML? BR phone1234567890/phone BR or maybe... BR phone title=Main number=1234567890 ext=10 type=Mobile/ BR Is there a standard? Best practice? BR Does anyone know of resources that would include best practices like this, BR with examples (not just for phone numbers)? BR -Brad BR ~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Your ad could be here. Monies from ads go to support these lists and provide more resources for the community. http://www.fusionauthority.com/ads.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: OT- RE: XML Best Practices - Resources
xsl-fo is for the formatting part. For general xsl questions, the list is XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list --- Tony Weeg [EMAIL PROTECTED] wrote: there is one in the yahoo groups...xsl-fo I think? tony weeg uncertified advanced cold fusion developer tony at navtrak dot net www.navtrak.net office 410.548.2337 fax 410.860.2337 -Original Message- From: Bruce Rojas-Rennke [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 13, 2003 3:26 PM To: CF-Talk Subject: OT- RE: XML Best Practices - Resources Sorry if this is too off-topic, but does anyone know of a good xsl/xslt forum? thanks- -Original Message- From: Bryan F. Hogan [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 13, 2003 1:17 PM To: CF-Talk Subject: RE: XML Best Practices - Resources Since XML is extensible it's up to you to create a format that you like. Whatever is easiest for you as long as you stick to the rules of XML. To learn more about the rules of XML. Check out the W3C site or http://www.w3schools.com/ for an overview. -Original Message- From: Brad Roberts [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 13, 2003 3:09 PM To: CF-Talk Subject: XML Best Practices - Resources What's the best way to store phone numbers in XML? phone1234567890/phone or maybe... phone title=Main number=1234567890 ext=10 type=Mobile/ Is there a standard? Best practice? Does anyone know of resources that would include best practices like this, with examples (not just for phone numbers)? -Brad ~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Your ad could be here. Monies from ads go to support these lists and provide more resources for the community. http://www.fusionauthority.com/ads.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: XML Best Practices - Resources
The xml dtd format, has an effect on preformance, depending on the implimentation have a look here.. http://www.15seconds.com/issue/010409.htm As for a standard, vcard would be the nearest thing to a standard AFAIK, look for xml vcard with google, you'll find some stuff on it. the older vcard format is much more popular than the newer xml format WG -Original Message- From: Michael T. Tangorre [mailto:[EMAIL PROTECTED] Sent: 14 August 2003 11:34 To: CF-Talk Subject: Re: XML Best Practices - Resources I have been reading up on XML and there seems to be alot of people that favor more of an element approach as apposed to an attribute approach. phone typemobile/type number555-555-/number extension1234/extension /phone Mike - Original Message - From: Brad Roberts [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Sent: Wednesday, August 13, 2003 3:08 PM Subject: XML Best Practices - Resources What's the best way to store phone numbers in XML? phone1234567890/phone or maybe... phone title=Main number=1234567890 ext=10 type=Mobile/ Is there a standard? Best practice? Does anyone know of resources that would include best practices like this, with examples (not just for phone numbers)? -Brad ~| Archives: http://www.houseoffusion.com/lists.cfm?link=t:4 Subscription: http://www.houseoffusion.com/lists.cfm?link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Signup for the Fusion Authority news alert and keep up with the latest news in ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm
RE: XML Best Practices - Resources
XSLT select attribute: xsl:value-of select=[EMAIL PROTECTED]/ XSLT select text: xsl:value-of select=posteremail/ with an example of ?xml version=1.0 encoding=UTF-8? posteremail id=1myemail/posteremail -Original Message- From: Tony Weeg [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 13, 2003 4:13 PM To: CF-Talk Subject: RE: XML Best Practices - Resources probably my own stupidity or ignorance at the time, but it was very easy to show elements that were their own tag pairs versus attributes of a single tag. why, I forget :( sorry, but maybe someone could show us the difference. of how, in xslt you would reference the data in the one versus the other, maybe it was just my own ignorance, but for some reason, most of the xml that I have ever seen has been tag-pairs, versus attributes of one tag. sorry I don't know why, it was like 8 months ago tony weeg uncertified advanced cold fusion developer tony at navtrak dot net www.navtrak.net office 410.548.2337 fax 410.860.2337 ~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Get the mailserver that powers this list at http://www.coolfusion.com Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: XML Best Practices - Resources
I know that when I had to use xslt to display some xml that this was easier to show phone type=home country??/country citycodecitycode area916/area exchange338/exchange number1234/number extension34/extionsion /phone in html format (parsed through xslt) than it was to pick these out... phone title=Main number=1234567890 ext=10 type=Mobile/ just my travels. tony weeg uncertified advanced cold fusion developer tony at navtrak dot net www.navtrak.net office 410.548.2337 fax 410.860.2337 -Original Message- From: Ian Skinner [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 13, 2003 3:22 PM To: CF-Talk Subject: RE: XML Best Practices - Resources Or you could do this phone type=home country??/country citycodecitycode area916/area exchange338/exchange number1234/number extension34/extionsion /phone I'm not sure about best practices... but I do remember from my XML studies, it depends on what your needs are, and designing the XML document is the real challenge/art. Parsing it afterwards is easy. -- Ian Skinner Web Programmer BloodSource Sacramento, CA -Original Message- From: Brad Roberts [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 13, 2003 12:09 PM To: CF-Talk Subject: XML Best Practices - Resources What's the best way to store phone numbers in XML? phone1234567890/phone or maybe... phone title=Main number=1234567890 ext=10 type=Mobile/ Is there a standard? Best practice? Does anyone know of resources that would include best practices like this, with examples (not just for phone numbers)? -Brad ~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Get the mailserver that powers this list at http://www.coolfusion.com Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
XML Best Practices - Resources
What's the best way to store phone numbers in XML? phone1234567890/phone or maybe... phone title=Main number=1234567890 ext=10 type=Mobile/ Is there a standard? Best practice? Does anyone know of resources that would include best practices like this, with examples (not just for phone numbers)? -Brad ~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Your ad could be here. Monies from ads go to support these lists and provide more resources for the community. http://www.fusionauthority.com/ads.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
OT- RE: XML Best Practices - Resources
Sorry if this is too off-topic, but does anyone know of a good xsl/xslt forum? thanks- -Original Message- From: Bryan F. Hogan [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 13, 2003 1:17 PM To: CF-Talk Subject: RE: XML Best Practices - Resources Since XML is extensible it's up to you to create a format that you like. Whatever is easiest for you as long as you stick to the rules of XML. To learn more about the rules of XML. Check out the W3C site or http://www.w3schools.com/ for an overview. -Original Message- From: Brad Roberts [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 13, 2003 3:09 PM To: CF-Talk Subject: XML Best Practices - Resources What's the best way to store phone numbers in XML? phone1234567890/phone or maybe... phone title=Main number=1234567890 ext=10 type=Mobile/ Is there a standard? Best practice? Does anyone know of resources that would include best practices like this, with examples (not just for phone numbers)? -Brad ~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Your ad could be here. Monies from ads go to support these lists and provide more resources for the community. http://www.fusionauthority.com/ads.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4