GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - oxygenxml/ax: Samples showing samples for controlling the Authoring eXperience with oXygen

BranchesTags
Open more actions menu

Latest commit

 

History

16 Commits
16 Commits

Folders and files

NameName
Last commit message
Last commit date
tabs
tabs
 
 
CODE_OF_CONDUCT.md
CODE_OF_CONDUCT.md
 
 
CONTRIBUTING.md
CONTRIBUTING.md
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
ax.xpr
ax.xpr
 
 

Repository files navigation

Authoring eXperience with oXygen (AX)

Samples showing samples for controlling the Authoring eXperience with oXygen

Using Tabs

The tabs folder contains a sample showing how one can use tabs. We use a LESS library to implement support for tabs, and then in the main LESS file we can declaratively mention that we want tabs for a specific element like

.tabs (
    selector1, selector2, ... selectorN;
    label1, label2, ...       labelN;    
)

or, if we want all the other elements not selected by the specified selectors to be available in a last tab, we can use

.tabsWithOthers (
    selector1, selector2, ... selectorN;
    label1, label2, ...       labelN;
    labelForLastTab    
)

So, basically, in order to create 4 tabs for a DITA task for the content of a taskbody element, one containing the content of the prereq element labeled Pre-requisites another the content of context labeled Context, the 3rd tab containing the content of steps labled Steps and a last tab containing all the other elements labeld More.... we can use something like:

taskbody{
    .tabsWithOthers(
        prereq, context, steps;
        Pre-requisites, Context, Steps;
        'More...'
    );
}

If we have a div element containing code samples in codeblock elements for different languages, marked with the outputclass attribute, then in order to create 3 tabs to show Java, CPP and XML blocks, we can use something like:

div{
    .tabs(
        "codeblock[outputclass~='language-java']", 
        "codeblock[outputclass~='language-cpp']", 
        "codeblock[outputclass~='language-xml']";
        Java, CPP, XML;
    );
}

Here it is the how the sample DITA task file (tabs/samples/task.dita) is rendered in the oXygen XML Author mode tabs/sample/task.png

or you can try it live in the oXygen XML Web Author with the tabs described above, specified in the tabs/css/task.less file: task.dita.

Copyright and License

Copyright 2018 Syncro Soft SRL.

This project is licensed under Apache License 2.0

About

Samples showing samples for controlling the Authoring eXperience with oXygen

Topics

oxygen-framework

Resources

Readme
Apache-2.0 license

Code of conduct

Code of conduct

Contributing

Contributing
Activity
Custom properties

Stars

2 stars

Watchers

8 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.