How to use customer specific profiles #592
-
I'm using DAPS for creating customer specific book sets. I tried using the profile switch to show / hide specific sections, but that doesn't work. Each section is visible. What is the correct process for my purpose? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 3 replies
-
Hi Martin, you generally need three parts for this to work:
|
Beta Was this translation helpful? Give feedback.
-
Hi, in addition to what Stefan already provided: You can have a look at the SUSE Linux Enterprise documentation repository for examples. We are usinng profilng (PROFOS, os="") to generate different versions of our Installation Quick Start:
The SLED DC file has
It works the same for the SLES variant with PROFOS="sles" and os="sles". If you have more than two variants, you can combine values in a ";"-seperated list: `os="sles;sled" to show parts for two variants but not a potential third. Same goes for the value in the DC files. If you have three variants of a product "basic", "enhanced", "full" and where "enhanced" contaiins the funcionality of "base" and full the functionality of "base" and "enhanced", you need to do the following (using the role="" attribute)
XML:
You can use profiling directly with all block elements or online with For more information incl. a list of valid profiling attributes, have a look at the DAPS documentation at https://opensuse.github.io/daps/doc/cha.daps.user.modular.html#sec.daps.user.modular.profile |
Beta Was this translation helpful? Give feedback.
Hi Martin,
you generally need three parts for this to work:
Your DC files (or alternatively, your command line) needs profiling via a PROF... line, e.g. for a document for Example Corp. and Yoyo Inc, you could use
PROFVENDOR=examplecorp; yoyoinc
.Your MAIN file needs the following xml-stylesheet PI at the top, directly after
<?xml version="1.0"?>
:Depending the DocBook version you are using, you may have to choose a different profiling stylesheet to apply.
In case your catalog does not provide this URN, you can probably just use an absolute file path, like
href="/usr/sha…