peca
Active Member
I'm don't yet familiar well with XML, but my opinion is, that XSL is better than DTD. XSL allow very tight description and even checking of attributes. In example, if titles are as this:TiKub said:I find it easier to make a DTD file from a XML file without attributes.
Then, you can not only check your PXML is a valid XML file but also that it conforms to PXML specifications
QUOTE
<title lang='en' text='Program title'/>
<title lang='de' text='Program Title in German Language'/>
<title lang='it' text='Program Title in Italian Language'/>
then XSL can strictly say what exactly must be used in "lang" attribute, so nobody can produce PXML with invalid lang code.
I guess that attributes are useful. It's just about good concept and schema.
Last edited by a moderator: