Level rules for nested codeblocks

I am trying to modify the level rules to apply indentation to codeblock elements, which I have allowed for nesting so we can create good code samples.
I have my level rules set up like this, but everything is still flush with the left margin when I am authoring:
Text format rules
If level is: 1
Basic properties
Indents
First indent: 0
Else, if level is: 2
Basic properties
Indents
Move first indent by: +0.5”
Else, if level is: 3
Basic properties
Indents
Move first indent by: +0.10”
Else, if level is: 4
Basic properties
Indents
Move first indent by: +0.15”
Anyone who's done this more often than me have any ideas? I have tried with both a FirstIndent, FirstIndentChange, LeftIndent, and LeftIndent change and whenever I apply the element definitions to my topic it still does not work.

Hmm .. well if you are using DITA, then tweaking the EDD (and DTD?) to accommodate nested codeblocks will "break" DITA if you plan to use other tools and make your files available to others. You could specialize [ph] or some other element to achieve the same thing "legally" .. but I'd reccomend against that.
What tool are you using to produce your HTML that accepts this model? I suppose that RoboHelp wouldn't care, but if you're using the DITA-OT, it'll barf since this isn't valid DITA.
Hmm .. I assume that you *are* authoring in XML, not in binary (structured) FM files, right? If you kept the files as binary, then you'd be able to get away with this without modifying the DTDs. (Authoring DITA in FM binary files is also not recommended, as you'll run into trouble down the road.)
To add multiple spaces you need to disable the Smart Space feature .. Format > Document > Text Options :: Smart Spaces .. it's unfortunate that this is burried so deep. (DITA-FMx, the tool I produce for enhanced DITA authoring in FM, has an auto-swithcing feature to flip between Smart Space modes when you place the insertion oping in a codeblock or non-codeblock element.)
Tabs don't work well in XML since most tools will collapse tabs into a space (in theory this shouldn't happen in a "preformatted" element like codeblock, but it does).
I definitely recommend trying to use the standard method for authoring codeblocks, despite the fact that it may not seem like a good idea for your situation. With DITA, it's best to stick with the standard as long as you can.
Cheers,
...scott
Scott Prentice
Leximation, Inc.
www.leximation.com

Similar Messages

  • Table in nested Iterators-Tree Level Rules for ViewInstances using same VL

    Hi All ,
    Jdev 11.1.1.6 , ADF BC , WLS 10.3.5.
    I have a use case wherein I need to show a table nested at 3rd level within 2 af:iterators like -
    <af:iterator id="i1" value="#{bindings.Location.collectionModel}"
                   var="locRow" varStatus="varStatus">
    <af:iterator id="i2" var="deptRow" value="#{locRow.children}"
    varStatus="varStat">
    <af:table value="#{deptRow.Employees}" //using child View Link accessor Attribute directly can use deptrow.children too
                          var="row">
    <af:column>
    <af:inputText value="#{row.EmployeeName}">
    </af:column>
    </af:table>
    </af:iterator>
    </af:iterator>I need to display a table of Employees for each manager ... like ManagerId=100 in one table and others in a separate one (I know weird requirement but thats how it is :( )
    So basically in my AM Data Model I have shuttled two view instances of Employee and filtered them using ViewCriterias accordingly like ->
    OrgAM
    -Location
    Department
    ---Employees //(WithManager100)
    ---EmployeesWithManageNot100
    Now since there is just one ViewLink between Department & Employees .. I am able to add "*EmployeesWithManageNot100*" as a child ViewLink accessor attribute , only Employees is available.
    Is there any way we can show separate child ViewInstances in a treeModel with only one ViewLink ?

    Thanks for your reply Frank.
    important: 11.1.1.6 , ADF BC , WLS 10.3.5. is not correct - it should be WLS 10.3.6AFAIK , 11.1.1.6 is compatible with both WLS 10.3.5 and 10.3.6 WLS and comes out of the box with WLS 10.3..5 which I am using for the Integrated Server.
    So while there is a way to have two child node collections, its not from view object instances you define and configure using view criteriaThe link you posted above is simialr to another link I bumped into yesterday -
    "How to filter tree node child data" , Pg 12 @ http://www.oracle.com/technetwork/developer-tools/adf/learnmore/feb2011-otn-harvest-328207.pdf written by you.
    But my requirement is showing instances of the same EmployeeVO as two tables inside the Department Iterator. But I am not able to do that since there is only one ViewLink accessor for the EmployeeView.
    Is that even possible without using 2 explicit physical View Links ?

  • How do you set up nested rules for iTunes smart playlist

    How do you set up nested rules for a iTune smart playlist

    Hello \"alice\",
    It sounds like you want to add additional criteria to your Smart Playlists.  I found an article with steps you can use to refine your Smart Playlist.  Step 2 specifically has what I think you are looking for:
    2. To have iTunes add songs that match specific criteria, make sure to select "Match the following rule," then make your selections from the pop-up menus.
    For example, you might want iTunes to only add songs that are by a particular artist, or songs with at least a four-star rating.
    To add additional matching criteria, click the Add button.
    You can find the full article here:
    iTunes: How to create a Smart Playlist
    http://support.apple.com/kb/ht1801
    The article says it is archived.  In the current version of iTunes, in step 1 you will select File>New>Smart Playlist.  Also, if you need to edit an existing Smart Playlist, you can right click (or hold command while you click) on it and select Edit Smart Playlist. 
    Thank you for using Apple Support Communities.
    Best,
    Sheila M.

  • Nesting of Rules for Auto Group (Role) Membership Rules in OIM 11gR2

    Does anyone know how to nest rules for auto group (role) membership in OIM 11gR2. The General rules in Design Console are no longer used for auto group membership and the rules that can be configured in the Role properties cannot be nested as far as I can see.
    Any info is appreciated.
    Thanks!

    My mistake... this is possible in the web ui.

  • Settlemnent rule for Non-Billable WBS at Level 2 .

    Hi Folks,
    We have the Finance related WBS at Level 2 one is billable & other is non billable WBS . As per the recommendation of SAP , we are generating the automatic settlement rule for Billable WBS at level 2 & all the below WBS ( which are non-billable ) & account assigned as Do not settle. ( settlemnet rule 90) .
    This issue is creating a issue to the non billable WBS at level 2 created wherein we are not able to settlement due to the strategy followed as Do not settle ( Rule 90 ) for the Account assigned WBS element.
    Is there any way we can settle the costs posted to the non-billable level 2 WBS to the reciever ?
    Your advice to this issue will be helpful.
    Thanks in advance.
    Ramu

    You can settle the cost of Non-billable WBSE to billable WBSE. and then from billable WBSE settle the cost to other reciever. for this to happen, you have to delete the settlement rule "do not settle" in non-billabe WBSE and write a settlement rule which settles to billable WBSE.

  • ASO Build Rule - "Level Usage for Aggregation"

    When Building ASO (9.3.1) Dimensions via Rules, we wish to set the “Level Usage for Aggregation” of a member in the data file.
    You can set a Rule Field Property to Aggregate Level Usage, though it not clear what value should be inserted in the Data File to specify one of the four options below for a member
    •     Consider All Levels
    •     Do Not Aggregate
    •     Consolidate Top Level Only
    •     Never Aggregate to Intermediate Levels
    Inserting the full name does not work and we cannot find any reference to the Aggregate Level Usage property in the Dbag.
    Can anyone advise on the correct property value’s required.
    Much Apreciated.

    From the DBAG here are you options for dimension builds with ASO applications
    % Express as a percentage of the current total in a consolidation (applies only to members of a dynamic
    hierarchy)
    * Multiply by the current total in a consolidation (applies only to members of a dynamic hierarchy)
    + Add to the current total in a consolidation (applies only to members of a dynamic hierarchy)
    - Subtract from the current total in a consolidation (applies only to members of a dynamic hierarchy)
    / Divide by the current total in a consolidation (applies only to members of a dynamic hierarchy)
    ~ Exclude from the consolidation (applies only to members of a dynamic hierarchy or members beneath Label Only members in a stored hierarchy)
    O Tag as label only
    N Never allow data sharing
    C Set member as top of a stored hierarchy (applies to dimension member or generation 2 member)
    D Set member as top of a dynamic hierarchy (applies to dimension member or generation 2 member)
    H Set dimension member as multiple hierarchies enabled (applies to dimension member only)
    Brian Chow

  • Kontext rule for formatting only the first child section in a chapter

    Hi all, I have run into a DITA problem. Each chapter of the document, i.e. top-level topic, contains a miniature toc of the nested sections. Therefore the first child topic's title should receive a page break.
    I tried this context rule for the title element, below you find the screenshot which I have tried to translate because the EDD is in German. Even though I define that the context should be the first parent topic only, the result is that every second-level topic now has a page break. Any ideas?
    8. Count ancestors: topic
        concept
        task
        reference
        If level is: 2
          8.1 If context is: (topic{first} | concept{first} | task{first} | reference{first})
                ..then set page break.
    Robert

    First, regardless of the UI language, you can import element definitions from an EDD using any of the language templates. Second, you can change the template that FM uses when it creates new EDDs (from the commands that in English are labeled StructureTools > New EDD and StructureTools > Export Element Catalog as EDD). Simply copy the desired template to $FMHOME\fminit\fmstruct\elemcat where $FMHOME is the directory in which FrameMaker is installed. I recommend backing up the original first.
    You can create an English EDD template from any English EDD simply by deleting all its content.
    By the way, you can modify the EDD template by changing its formatting rules, master pages, and so forth. I haven't yet done so for FM 11, but see http://forums.adobe.com/thread/909395 for information on various changes I've made to the English EDD templates for previous versions.
             --Lynne

  • Capital Project Settlement Rule for lower WBS

    Hello,
    At my present client, for Investment projects the client want to settle top level WBS to AUC and capitalise it. So ideally the cost from lower level WBS should flow to top WBS. I am using substitution to remove investment profile from lower WBS.My concern is how do I auto populate the settlement rule for lower WBS to top WBS. I am aware about settlement strategy and OSS note 211324 (however dont want to implement this note)
    The appraoch I am looking for is using "WBS_SETTLEMENT_RULE' BAdI . However this BADI calls for strategy and I could not maintain the required strategy (settlement to top WBS). Is there some BADI/Function module available which can be called for updating the settlement rules on lower WBS while saving or Release ? Can I make use of exits in Substitution?
    Please let me know your opinions.
    Thanks
    Sarang

    Thanks Virendra. I agrree the only approach is development. But I need to give inputs to my developer.
    We tried with BADI "WBS_SETTLEMENT_RULE" but it didnt work as it calls strategy in configuration.
    So I am checking for some other options for e.g "WORKBREAKDOWN_UPDATE" which is called during save or Fn modules K_SETTLEMENT_RULE_FILL or K_SETTLEMENT_RULE_SAVE which I can use. This is a client requirement to create AUC only at top level n all cost to be rolled up to superior WBS n then settle to AUC.
    The other option I was thinking is of using exits thru substitution.
    What will be the best approach?
    Thanks
    Sarang

  • Settlement rule for Asset Under Construction not automatically generated.

    Hi Experts,
    I am working on a capital project scenario where in i configured the SAP IM and SAP PS module. i am able to create AUC at the WBS level on project release,but i am not able to generate the settlement rule for AUC automatically.
    Please suggest as to what i am missing to generate settlement rule for AUC automatically.
    Thanks,
    shiv

    i think for automatically AUC to be generated, u need to create investment profile in OITA in that u have to tick mange AUC in investment measure. & select settlement for summary settlement.
    This investment profile u need to specify in Project Profile OPSA.
    do this setting & let me know whts happen?
    ok best of luck.
    Regards,
    ANSAR

  • How to write a validaton rule for Cost Center and plant in PO

    Hi,
    I need to write a Validation Rule for Cost center and Plant in Purchase Order to get the error message if the Plant and cost center combination didnot match.
    But i am not sure in which transaction code do we need to write this validation. Kindly help me by giving T.Code or path to do validation at PO level.
    Thanks
    Sunil

    >
    Sunil Pal Raj wrote:
    > Hi,
    >
    > I need to write a Validation Rule for Cost center and Plant in Purchase Order to get the error message if the Plant and cost center combination didnot match.
    >
    > But i am not sure in which transaction code do we need to write this validation. Kindly help me by giving T.Code or path to do validation at PO level.
    >
    > Thanks
    > Sunil
    Check OKC7
    Regards,
    Indranil

  • How to define an aggregation rule for a dimension based on bridge table?

    Hello,
    I need a solution for aggregating data correctly when using a dimension based on a set of dimensione tables containing a bridge table. Please find below a description of my business case and the OBIEE model which I’ve created thus far.
    Business Case
    The company involved wants to report on the number of support cases, the different types of actions that were taken and the people involved in those actions. One support case will undergo a number of actions (called ‘handelingen’) until it is closed. For each action at least one person is involved performing a specific role, but there can also be multiple persons involved with 1 action, each performing a different role for that action. This is the N : N part of the model.
    The problem that I face is visible in the two pictures below:
    http://i84.photobucket.com/albums/k24/The_Dutchman_2006/OBIEE/sample.png
    As long as I don’t include anything from the Dimension Meelezer in my report, I get the correct number of handelingen (7). When I include the person (called ‘Meelezer’), the measuere per action is multiplied by the number of persons/roles involved with that action.
    When I changed the Aggregation rule in the report column #Handelingen to ‘Server Complex Aggregate’ I do get the correct endtotal:
    http://i84.photobucket.com/albums/k24/The_Dutchman_2006/OBIEE/sample2.png
    I believe it should be possible to define in the repository a different aggregation rule for individual dimensions, but I’ve not been able to achieve this.
    Explained below is what I have created in my Physical and Business Model & Mapping layers:
    The Physical Model is built like this:
    (This is just a small part of a much larger physical model, but I’ve only included the most relevant tables)
    http://i84.photobucket.com/albums/k24/The_Dutchman_2006/OBIEE/PhysicalDiagram-1.png
    The Fact table (ALS Feit Zaakverloop) contains FK’s for the action (FK_HANDELING, joined to ALS Dim Handeling), the date the action took place (FK_DATUM_ZAAKVERLOOP, joined to ALS Dim Datum Zaakverloop) and the uniqe group of people involved (FK_MEELEZERS, joined to ALS Groep Meelezers) and a measure column (SUM_HANDELINGEN) populated with the value ‘1’ for each row.
    The Bridge table (ALS Brug Meelezer/Reden Meelezen) contains three FK’s: FK_GR_MEELEZERS (joined to ALS Groep Meelezers), FK_MEELEZER (joined to ALS Dim Functionaris) and FK_REDEN_MEELEZEN (joined to ALS Dim Reden Meelezen).
    The Business Model
    In the business model, the four physical tables for the N:N relation have been combined into one logical dimension table.
    http://i84.photobucket.com/albums/k24/The_Dutchman_2006/OBIEE/BusinessModel-1.png
    DIM Meelezer contains one LTS in which the four physical tables have been combined:
    http://i84.photobucket.com/albums/k24/The_Dutchman_2006/OBIEE/LTS1.png
    And all the required locical columns have been created:
    http://i84.photobucket.com/albums/k24/The_Dutchman_2006/OBIEE/LTS2.png
    DIM Meelezer has also been identified as a bridge table and a Business Key has been defined on a combination of the FK’s in the bridge table and business codes of the two dimension tables.
    http://i84.photobucket.com/albums/k24/The_Dutchman_2006/OBIEE/BMDIM.png
    Next a hierachy was created for Dim Meelezer:
    http://i84.photobucket.com/albums/k24/The_Dutchman_2006/OBIEE/Hier.png
    In Feit Zaakverloop, a measurement called ‘# Handelingen’ was created using SUM_HANDELINGEN, with an aggregation rule of SUM.
    In the LTS of both the DIM Meelezer and Feit Zaakverloop, the Logical Content Levels have both been set to: LVL Detail – Meelezer.
    Please provide suggestions that will NOT require changes to the physical datamodel as they would require too much time to achieve (or at leats would not be ready before my deadline.
    Thanks!
    Edited by: The_Dutchman on Dec 13, 2011 11:43 AM

    Hmm, no replies yet...
    Am I in 'uncharted territory' with this issue?

  • GRC 10: How to upload Org Level Rules in GRC 10?

    Hello Friends,
    we have implemented GRC 10 recently but missed to move org level rules from GRC 5.3 to 10. I don't see an option to load org rules in SPRO. Can you please let me know how can i load org rules from 5.3 to 10 with out disturbing the existing risks / functions? or is there an option to update tables directly for org rules?

    Hi Colleen Lee,
    Thank you for your response. Yes i see Master Data > Exception Access Rules > Organizational Rules and i am able to create org rules but i am trying to find an option to upload all at a time as we have around 50 org rules and have 2600 lines in it. creating manually will take so long and looking for alternate.
    Thanks & Regards 
    Pradeepthi

  • Trigger substitution rule for a background job

    Hi all,
    I ve written a subroutine in Substitution rules for FI in GGB1 tcode for F110 transaction to replace the section code (bseg-secco) while posting a fi document.
    but the substitution rule is not getting triggered as F110 runs a background job to post the document...
    The substitution is active and the activation level is active all the time.
    Could u please suggest how to get it triggered for a background job...

    Measuring External Processes
    Use
    The runtime analysis allows you to switch into work processes that are already running and to measure the runtime of dialogs running in them as though they were running in the current session. You can have up to ten external sessions, which may be of any type – for example, dialog, update, or spool. This runtime analysis variant is ideal for monitoring long-running background jobs.
    Filename and Directory
    If you do not want to use the default filename and directory to store files, you can change them using the profile parameter abap/atrapath. If the profile parameter does not contain an entry at all, an error occurs when you start the runtime analysis.

  • Different aggregate rule for different measures?

    Hi.I have an outline with two members in measures dimension:Activity and Profit. Other dimensions including Period,Account,Area,Cost Center etc.The customer require the Activity measure to be aggregated on all dimensions. But as the Profit measure, when Period and Account members are the same, the Profit value on the level 0 member of Area and Cost Center will be either #Missing or an equal number. And the aggregate rule on Area and Cost Center,while Period and Account members are the same, should be to copy one none-missing value(if exists) to the upper level member.For example,if Area has three children:area1,area2,area3. When fixing Period Account and Cost Center,the Profit on area1 is 15,area2 is #missing,area3 is 15. Then the Profit on Area should be 15. So is on the dimension Cost Center.How can I design a formula or a calc script to do it?Thanks!

    What I found in Oracle presentation is that in 10GR2 compressed cube enhancements support all aggregation methods except weighted methods (first, last, minimum, maximum and so on). It is from September 2005 so maybe something changed since then.
    Regarding your question about the results I think it is caused by the fact that calculation are made on doubles and then there is a compression, so maybe precsion is lost a little bit :(. I really am curious whether it is because of numeric (precision loss) issues.

  • Query on Receiver FCC for nested structure

    Hi Friends,
    I want to  configure the Receiver side FCC for the below nested structure.
    Can you guide me how can i achicve it? or its not possible for nested structure?
    Seg100,Seg200.Seg300 and Seg400 are nested one below the other.
    <?xml version="1.0" encoding="UTF-8" ?>
    - <ns0:Test xmlns:ns0="http://hello.com">
    --<Seg100>
    --<field1>0000564.30</field1>
    --<field2>KG</field2>
    --<Seg200>
    ---<field3>1070</field3>
    ---<Seg300>
    <field4>5</field4>
    <Seg400>
    <field4>5</field4>
    </Seg400>
    ---</Seg300>
    --</Seg200>
    -</Seg100>
    </ns0:Test>
    Regards
    Venkatesh

    Hi,
      For nested structure we cont do the File content conversion.
      so that we need to convert it a flat structure in the mapping level and then we can go for FCC.
    Regards,
    Prakasu

Maybe you are looking for

  • Can't hear audio from handheld mic recording

    I can hear interviews I recorded with a handheld mic on videos edited in iMovie and uploaded to YouTube only if I access YouTube via a brower such as Safari and Puffin and only if I use my new third generation iPad or an iMac or PC. If I try to acces

  • No External Applications visible in Portlet

    I have just upgrade from Oracle Portal 3.0.9 to 3.0.9.8.1 (Patch applied to loginserver and portal schema) and the External Applications that were set up have gone from the portlet. If I go to the "Login Server Administration" portlet and select the

  • EXPORT_MD_TO_FILE

    Hello All, I am trying to run the standard EXPORT_MD_TO_FILE Data Manager Package. I'm having an issue with any descriptions that have a comma. If the description has a comma, it splits it into another column in the export. Thus, if I have: ID       

  • Exchange Server 2013: Not Receiving Internet email

    Hello Guys, I have a new Exchange 2013 install and i am having problems receiving internet email. When testing from https://www.testexchangeconnectivity.com it fails at the last step when it tries to send a test email. I get the following response: T

  • I cannot get Aperture to crop the picture

    What am I doing wrong. Is there another button I need to accept the crop ? THe crop lines show and I can move them anyway I want. When I release the line I cannot get the picture to crop. I am sure it is something obvious but I just cannot get it to