[oXygen-user] oXygen-user Digest, Vol 48, Issue 8

Cwiklowski, Don
Fri Oct 10 12:47:06 CDT 2014


Roderick,

I'm not sure what it is you want the @rev to produce, but if you want create a revbar, or something similar, you can create a ditaval file that will produce a specific result based on the value you put it for @rev. That way, if you have three different specified values, you could have three different results. And if a writer goes against this, nothing will display. A transformation scenario can then be created to use the ditaval.

Doing this will require no development for schema or xslt.

In the dita spec look for Ditaval elements, and Flagging.

It works great. You may have to do a bit of development if you're trying to impose a date to display, or something other than a revision bar, or stylized text.

Don Cwiklowski, Jr.
Senior Technical Communicator
Customer Technical Communications | Operations and Technology
MasterCard
2200 MasterCard Blvd | O'Fallon, MO 63366
tel 636-722-6802



Please think of the environment before printing this email.


-----Original Message-----
From:  [mailto:] On Behalf Of 
Sent: Friday, October 10, 2014 12:00 PM
To: 
Subject: oXygen-user Digest, Vol 48, Issue 8

Send oXygen-user mailing list submissions to
        

To subscribe or unsubscribe via the World Wide Web, visit
        http://www.oxygenxml.com/mailman/listinfo/oxygen-user
or, via email, send a message with subject or body 'help' to
        

You can reach the person managing the list at
        

When replying, please edit your Subject line so it is more specific than "Re: Contents of oXygen-user digest..."


Today's Topics:

   1. rev attribute in topircref (Roderik Dernison)
   2. Re: rev attribute in topircref
      (Oxygen XML Editor Support (Radu Coravu) )


----------------------------------------------------------------------

Message: 1
Date: Fri, 10 Oct 2014 09:35:31 +0200
From: "Roderik Dernison" <>
To: 
Subject: [oXygen-user] rev attribute in topircref
Message-ID:
        <>
Content-Type: text/plain;charset=iso-8859-1

Hi,

I'm trying to modify the schema for the ditamap. I need to set three fixed values on the rev attribute of the topicref element in a ditamap.
What element in what xsd file should I edit to accomplish this?


--

Kind regards,

Roderik Dernison



------------------------------

Message: 2
Date: Fri, 10 Oct 2014 11:22:28 +0300
From: "Oxygen XML Editor Support (Radu Coravu) "
        <>
To: 
Subject: Re: [oXygen-user] rev attribute in topircref
Message-ID: <>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

Hi Roderik,

Instead of modifying directly the XSDs I would advise you to define a Subject Scheme Map which imposes those three values on the @rev attribute, the validation in Oxygen should report errors when the attribute has other values.

> http://www.oxygenxml.com/doc/ug-oxygen/#topics/subject-scheme-map.html
> http://www.oxygenxml.com/demo/DITA_Subject_Scheme.html

Basically your Subject Scheme map would have the content:

> <!DOCTYPE subjectScheme PUBLIC "-//OASIS//DTD DITA Subject Scheme
> Map//EN" "map.dtd"> <subjectScheme>
>     <subjectHead>
>         <subjectHeadMeta>
>             <navtitle>Rev controlled attr values</navtitle>
>         </subjectHeadMeta>
>     </subjectHead>
>     <hasInstance>
>         <subjectdef keys="revSbjKey">
>             <subjectdef keys="value1">
>                 <topicmeta>
>                     <navtitle>First Value</navtitle>
>                 </topicmeta>
>             </subjectdef>
>             <subjectdef keys="value2">
>                 <topicmeta>
>                     <navtitle>First Value</navtitle>
>                 </topicmeta>
>             </subjectdef>
>             <subjectdef keys="value3">
>                 <topicmeta>
>                     <navtitle>First Value</navtitle>
>                 </topicmeta>
>             </subjectdef>
>         </subjectdef>
>     </hasInstance>
>     <enumerationdef>
>         <attributedef name="rev"/>
>         <subjectdef keyref="revSbjKey"/>
>     </enumerationdef>
> </subjectScheme>

and it would be referenced in the main DITA Map like:

> <topicref href="revSbjSchemeVals.ditamap" format="ditamap"
> type="subjectScheme"/>

As long as the main DITA Map will be opened in the DITA Maps Manager view Oxygen should also detect and propose those values when you use the "Edit Profiling Attributes" action or when editing the values in the Attributes view.

Regards,
Radu

Radu Coravu
<oXygen/>  XML Editor, Schema Editor and XSLT Editor/Debugger http://www.oxygenxml.com

On 10/10/2014 10:35 AM, Roderik Dernison wrote:
> Hi,
>
> I'm trying to modify the schema for the ditamap. I need to set three
> fixed values on the rev attribute of the topicref element in a ditamap.
> What element in what xsd file should I edit to accomplish this?
>
>


------------------------------

_______________________________________________
oXygen-user mailing list

http://www.oxygenxml.com/mailman/listinfo/oxygen-user


End of oXygen-user Digest, Vol 48, Issue 8
******************************************

CONFIDENTIALITY NOTICE This e-mail message and any attachments are only for the use of the intended recipient and may contain information that is privileged, confidential or exempt from disclosure under applicable law. If you are not the intended recipient, any disclosure, distribution or other use of this e-mail message or attachments is prohibited. If you have received this e-mail message in error, please delete and notify the sender immediately. Thank you.


More information about the oXygen-user mailing list