![]() |
![]() | ![]() | ![]() | Altova Mailing List Archives>Archive Index >comp.text.xml Archive Home >Recent entries >Thread Prev - Re: is XML what I want here? [Thread Next] Re: is XML what I want here?To: NULL Date: 3/5/2006 8:42:00 PM John Salerno wrote: > steve_marjoribanks wrote: >> Look here for an intorduction to XHTML >> http://www.w3schools.com/xhtml/default.asp >> >> For just display purposes then use XHTML (or HTML) but if you want to >> display the data and have the potential for programs to access the data >> within it then I'd recommend that you use XML and use an XSL stylesheet >> to transform it for display purposes. There are tutorials for all of >> this on that website http://www.w3schools.com >> >> Steve >> > > Thanks, I'll check that out. But one question: will this allow me to add > text to parent nodes? Not relevant. Whether or not you can add text to an element's content depends on the rules (if any) you have established beforehand. If you use one of the well-known sets of rules like DocBook, then your ability to add text in any given element depends on whether it has been made suitable for this or not. Paragraphs <para> can contain mixed content, for example; list containers like <itemizedlist> can't (but paragraphs within each <listitem> obviously can). > For example, if I have <subcategory></subcategory> > as the parent to several <rule> nodes, am I still able to put text > within the <subcategory> node? Or does it always just contain child nodes? If you decide you can, you can, but as I pointed out earlier, it's poor practice unless you have some very specific reason for wanting to intermingle arbitrary text and rule elements. ///Peter -- XML FAQ: http://xml.silmaril.ie/ | ![]() | ![]() | ![]() |
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | |||||
|
