Do you have plan to implement propagation of meta attribute from topic
prolog to topic elements:

Expected behavior:

1) Authoring:
....
<prolog>
    <metadata>
        <data audience="Man" otherprops="fr" platform="Linux"/>
</metadata>
</prolog>
...

2) When processing every element in topic body will have audience
attribute with "Man" value.

Do I correct undestand that behavior mentioned above is described in standard:
"Conditional processing attributes

For a topic or topicref, the audience, platform, and product metadata
can be expressed with attributes on the topic or topicref element or
with elements within the topic prolog or topicmeta element. While the
metadata elements are more expressive, the meaning of the values is
the same, and can be used in coordination: for example, the prolog
elements can fully define the audiences for a topic, and then metadata
attributes can be used within the content to identify parts that apply
to only some of those audiences."

?




2009/10/22 Hussein Shafie <hussein at xmlmind.com>:
> Nikolay Rastegaev wrote:
>> You wrote as first item in "Other limitations and specificities" contains:
>> (http://www.xmlmind.com/ditac/_distrib/doc/manual/limitations.html#limitations)
>>
>> "The inheritance of metadata (e.g. author) and attributes (e.g.
>> audience) between maps and topics is almost certainly not conforming.
>> (The reason for this limitation is that the implementors of ditac
>> didn't really understand the specification of this feature.) "
>>
>>
>> The inheritance maybe used for translation:
>> 1. define otherprops="en" attribute in topic prolog element
>> This must be processed as all topic content has otherprops attribute
>> equals "en" (as described in OASIS DITA v1.1 Architectural Spec
>> "Conditional processing attributes" page 42)
>> 2. define otherprops="other lang code" attribute for translated topics 
>> elements
>> 3. create ditaval-file with:
>> <prop action="exclude" val="en">
>> 4. convert document (to PDF, for example)
>>
>> This is unusual approach, and If you advice me how I can authoring
>> content in two language in a topic file and then
>> filter only one (original and translation) for document conversion.
>> I try filter by "xml:lang" attribute :-) but it's not work :-),
>> unfortunately it's not a processing attribute.
>>
>
> xml:lang does not work because it belongs to the XML namespace. This is
> documented here:
> http://www.xmlmind.com/ditac/_distrib/doc/manual/limitations.html#limitations
>
> ---
> Conditional processing
>
> ...
>
> * Any attribute whose name does not belong to a namespace, that is, not
> only audience, platform, product, rev, otherprops and props, can be used
> to filter or flag an element.
> ---
>
> However because the XML namespace is guaranteed to be always defined,
> we'll try to remove this limitation in the patch release we intend to
> release in the next few days.
>
>
>

Reply via email to