atom feed10 messages in org.oasis-open.lists.docbookRe: [docbook] Adding new element to d...
FromSent OnAttachments
John DyerMar 28, 2006 3:38 pm 
Thomas SchraitleMar 29, 2006 8:45 am 
John DyerMar 29, 2006 9:17 am 
Jirka KosekMar 29, 2006 9:48 am.bin
Bob StaytonMar 29, 2006 10:04 am 
Dick HamiltonMar 29, 2006 10:06 am 
John DyerMar 30, 2006 9:58 am 
Chris ChiassonMar 30, 2006 11:19 am 
Jirka KosekMar 30, 2006 12:27 pm.bin
Bob StaytonMar 30, 2006 11:48 pm 
Subject:Re: [docbook] Adding new element to docbook DTD
From:Jirka Kosek (jir@kosek.cz)
Date:Mar 29, 2006 9:48:45 am
List:org.oasis-open.lists.docbook
Attachments:
bin00007.bin - 4k

John Dyer wrote:

<para condition="C1;C2"> this is a test </para>

This paragraph would be printed if C1 is true OR C2 is true. I would like to have a way to print this paragraph only if C1 is true AND C2 is true. As far as I can tell, docbook does not support this, so my idea is to nest elements with the conditions that need to all be true. Take this example:

You can use multiple profiling attributes on a single element. In this case conditions are "ANDed". E.g.

<para condition="C1" role="C2"> this is a test </para>

And then use profile.condition=C1 and profile.role=C2 parameters for processing. Note that you might find more appropriate attribute then role for the second condition. The following attributes are supported directly for profiling:

<xsl:param name="profile.arch" select="''"/> <xsl:param name="profile.condition" select="''"/> <xsl:param name="profile.conformance" select="''"/> <xsl:param name="profile.lang" select="''"/> <xsl:param name="profile.os" select="''"/> <xsl:param name="profile.revision" select="''"/> <xsl:param name="profile.revisionflag" select="''"/> <xsl:param name="profile.role" select="''"/> <xsl:param name="profile.security" select="''"/> <xsl:param name="profile.userlevel" select="''"/> <xsl:param name="profile.vendor" select="''"/>

--

------------------------------------------------------------------ Jirka Kosek e-mail: jir@kosek.cz http://www.kosek.cz

------------------------------------------------------------------ Profesionalni skoleni a poradenstvi v oblasti technologii XML. Podivejte se na nas nove spusteny web http://DocBook.cz Podrobny prehled skoleni http://xmlguru.cz/skoleni/

------------------------------------------------------------------ Nejblizsi terminy skoleni: ** XSLT 13.-16.3.2006 ** XML schemata 24.-26.4.2006 ** ** DocBook 15.-17.5.2006 ** XSL-FO 12.-13.6.2006 **

------------------------------------------------------------------ http://xmlguru.cz Blog mostly about XML for English readers