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] Chunking Based on Attribute

There is support in the xsls for the opposite approach and stop
chunking, the processing instruction, <?dbhtml stop-chunking?> which
stops chunking at the current chunk:

With the PI, you control chunking using the various other params (e.g.
chunk.first.section, chunk.section.depth) and when you have some
subsections that are closely related to their parent, you can add
<?dbhtml stop-chunking?> and you can be sure they will all live together
on the same chunk:

	<title>A section</title>
	<para>Some text</para>
	  <?dbhtml stop-chunking?> 
	  <title>A subsection</title>
	  <para>Some text</para>
		<title>Three deep</title>
		<para>Some text closely related to the parent
	  <title>Another subsection</title>
	  <para>Some text</para>



	From: Bob Stayton [mailto:bobs@sagehill.net] 
	Sent: Wednesday, October 08, 2008 12:21 PM
	To: Marvin, Scot; docbook-apps@lists.oasis-open.org
	Subject: Re: [docbook-apps] Chunking Based on Attribute
	There is no direct support in the HTML chunking stylesheet to
chunk based on attributes.  However, you could implement something like
this using a two-step process.  The chunking stylesheet supports
chunking based on an external chunk TOC, as described in the section
titled "Manually control chunking" in this reference:
	You could create a custom XSL that extracts such a TOC from your
document based on your role attribute, and then use that TOC to chunk
the document in the second step.
	Bob Stayton
	Sagehill Enterprises

		----- Original Message ----- 
		From: Marvin, Scot <mailto:scotm@amazon.com>  
		To: docbook-apps@lists.oasis-open.org 
		Sent: Tuesday, October 07, 2008 12:31 PM
		Subject: [docbook-apps] Chunking Based on Attribute

		Sorry if this is explained elsewhere, but is there a way
I can chunk sections based on their attribute, regardless of how deeply
they are nested?


		For example, I want to chunk all sections that have a
role="chunkHere", but these sections might appear at many nested levels.
I don't want to chunk sections that have no such attribute, regardless
of their nesting level.


		Does that make sense? Thanks for any help you can offer.



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