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

Community Tip - You can change your system assigned username to something more personal in your community settings. X

How to add a rule to PublishingRules.xml to choose a stylesheet based on subType attribute of Bookmap

ptc-5081524
1-Visitor

How to add a rule to PublishingRules.xml to choose a stylesheet based on subType attribute of Bookmap

Here is rule am trying

<rules xmlns="http://www.ptc.com" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.ptc.com PublishRulesSchema.xsd">

<authoring-application name="ARBORTEXT">

<param-set name="Paramset1">

<post-publish name="delegate">com.ptc.wvs.server.publish.DefaultPostPublishDelegate</post-publish>

<post-publish name="name">{OUTPUT_TYPE} {AUTHORING_APP} {EPM_NUMBER}</post-publish>

<post-publish name="published-content-link">create</post-publish>

<worker name="stylesheet">//mapwcpubn02/application/com.arbortext.dita/doctypes/ditabase/warranty.style</worker>

</param-set>

<epm-type type="com.bsci.bsc.literature.Bookmap">

<publish on="checkin" output="PDF" param-set="Paramset1"/>

<publish on="create-representation" output="PDF" param-set="Paramset1"/>

<publish on="schedule" output="PDF" param-set="Paramset1"/>

</epm-type>

</authoring-application>

</rules>

Now the subType of bookmap can be 1.systemguide 2. physiciantechmanual 3. waranty etc,,,

Here is the condition am using

<condition name="systemguide">

<attribute name="epmdoc_subType" value="systemguide" />

</condition>

<if condition="systemguide">

<publish on="create-representation" output="PDF" param-set="Paramset1"/>

</if>

How can i complete this to accomplish the task of selection right stylesheet basaed on the value of empdoc_subType? Please suggest
_

0 REPLIES 0
Announcements


Top Tags