cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

nested e-i-c

gsananes
1-Newbie

nested e-i-c

Hi adepters!
Does anybody knows how to declare nested elements in context. That is e-i-c
in e-i-c. I have a DTD with two branches one for scientific articles and one
for literary articles. Both have sections and sub-section, and both types of
sections have titles. Obviously the titles of the sections are bigger than
the title of the sub-sections, which I declare with e-i-c in a FOSI. But I
don't know how to make that the titles of the scientific articles go in 24pi
and 20pi and the titles of the literary text in 20pi and 16pi. since there
is only one context to declare, or there is way to declare that a title in a
section in scientific article goes in 24 pi and a title in a section in a
literary article goes in 20 pi. Otherwise i would need attributes, I guess.

GABRIEL


2 REPLIES 2

Hi Gabriel

The context part of the e-i-c can follow the ancestry back as far as you
want, so you could do

<e-i-c gi="title" context="*" section=" *=" scientific&quot;=">
...
</e-i-c>

<e-i-c gi="title" context="*" section=" *=" literary&quot;=">
...
</e-i-c>

This would distinguish titles in sections in a scientific article from
titles in sections in a literary article

Best of luck

Phil

on 11/1/2001 5:10 pm, Gabriel Oreggioni Sananes at
gsananes@planeta-actimedia.es wrote:

> Hi adepters!
> Does anybody knows how to declare nested elements in context. That is e-i-c
> in e-i-c. I have a DTD with two branches one for scientific articles and one
> for literary articles. Both have sections and sub-section, and both types of
> sections have titles. Obviously the titles of the sections are bigger than
> the title of the sub-sections, which I declare with e-i-c in a FOSI. But I
> don't know how to make that the titles of the scientific articles go in 24pi
> and 20pi and the titles of the literary text in 20pi and 16pi. since there
> is only one context to declare, or there is way to declare that a title in a
> section in scientific article goes in 24 pi and a title in a section in a
> literary article goes in 20 pi. Otherwise i would need attributes, I guess.
>
> GABRIEL
>


Thank you very much Phil!!
I'll try right now.

GABRIEL

-----Mensaje original-----
Announcements