[Bug 2878] "Element within text" data category

http://www.w3.org/Bugs/Public/show_bug.cgi?id=2878





------- Comment #9 from fsasaki@w3.org  2006-03-14 02:22 -------
(In reply to comment #8)
> > But since there is only one value for this data category
> > (which is different from translatability "yes" versus "no"),
> 
> I'm not sure about this. I think we might need two values: "yes' and "no".
> for example in DocBook the element <firstname> is within text when its parent
> is <address> but not within text when its parent is <personname>. So we would
> have something like:
> 
> <its:withinText its:selector="//address/*" its:withinText="yes"/>
> <its:withinText its:selector="//personname/*" its:withinText="no"/>

It took some time, but now I understand.

> 
> To be sure to set the right value to <firstname> (and the many elements like
> <firstname>).
> 
> One could do it one by one obviously:
> 
> <its:withinText its:selector="//address/firstname" its:withinText="yes"/>
> etc... (omitting the parents with mixed content)
> 
> but it would make things more complicated (I think).

I think your proposal with "yes" and "no" looks good. Btw., is this only a
"global" data category? Or do we need also a local attribute its:withinText?
> 

Received on Tuesday, 14 March 2006 02:22:54 UTC