OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]

Subject: RE: [docbook-apps] profiling=hiding?

1. I'm assigning condition="pdf" to elements I want to appear in the

2. I've got an ant script that does two-pass processing, first
processing the incoming XML with profile.xsl and then processing that
output with my customized stylesheet. The part that processes the
incoming XML includes this line to specify the profiling condition:
<arg value="profile.condition='pdf'"/>. 

Below is the original XML corresponding to the attached PDF files
showing the results.

<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
"http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd"; []>

<chapter id="Introduction" role="topic">
	<title id="Introduction.title">Introduction</title>
	<para condition="pdf">This para has condition="pdf" assigned to
	<para>This para has no condition attribute at all.</para>

		<section condition="pdf">
			<title>Section 1</title>
			<para>This section has condition="pdf" assigned
to it.</para>
			<title>Section 2</title>
			<para>This section has no condition attribute at

If I turn off profiling, I get the results in no_profiling.pdf as

When I turn on profiling, everything tagged with condition="pdf"
disappears, as shown in with_profiling.pdf.

When I change the arg statment in the ant script to say:
<arg value="profile.condition='blah'"/>
I get the exact same results as in with_profiling.pdf.
So, it doesn't seem to matter what value I use for profile.condition.
Anything with a condition attribute disappears.

This seems backwards. What am I missing here?

-----Original Message-----
From: Ken Morse [mailto:kenneth.morse@gmail.com] 
Sent: Wednesday, May 23, 2007 6:09 PM
To: docbook-apps@lists.oasis-open.org
Subject: Re: [docbook-apps] profiling=hiding?

How are you doing the profiling, Cheri?

You need to set the condition to what you want to show up -- any other
setting for that condition (including no setting at all) makes it
disappear during the profiling phase.

For example, if you have the following code:
<sect1 condition="internal">
  <title>Awesome title goes here</title>

Then setting condition to "internal" will keep it in the document;
setting it to "external", "fred", or anything else will exclude it from
the document. Don't forget to process the profiled version using either
Single-pass or Two-pass processing.


On 5/23/07, Dennison, Cheri <cherid@amazon.com> wrote:
> Hi,
> I'm using:
> *       Saxon 6.5.5
> *       Xerces 2.8.0
> *       Apache FOP 0.20.5
> Context:
> I just want to confirm that my experience of profiling is correct, 
> because it contradicts the description of profiling in the chapter in 
> Bob Stayton's book. My task is to try to control what goes in the PDF.
> My Results:
> -- Any element with attribute condition="anyvalue" gets hidden and 
> doesn't show up in the PDF. So, the attribute is removing the element 
> from the output instead of putting the element into the output. That 
> seems to be the opposite of how profiling is described in the book.
> -- It doesn't matter what I set profile.condition to when I process 
> the guide. Any value causes any element with a condition attribute to 
> be hidden from the PDF.
> Does this sound right? It seems to work consistently, but it just 
> doesn't work like I thought it would.
> Thanks so much for any thoughts you have!!
> cheri
> --
> Cheri Dennison / Technical Writer
> AWS Platform Group
> cherid@amazon.com



[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]