Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: is XML what I want here?

From: Peter Flynn <peter.nosp@-.--------.-->
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/


transparent
Print
Mail
Digg
delicious
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent