Chunk Depth



The optimal chunk depth is something that's difficult to determine on a
per-document basis.  Yelp's current behavior on HEAD is that books have
a default depth of 2 and everything else has a default depth of 1.

However, you can use the yelp:chunk-depth processing instruction to tell
Yelp exactly what depth to chunk your document to.  If you want to use
this, just place the yelp:chunk-depth PI near the top of your document,
before your opening tag.  Example:

<?xml version="1.0"?>
<?yelp:chunk-depth 4?>
<book>
...
</book>

This would make Yelp chunk the document a whopping 4 levels deep.  You
do not need to declare the yelp namespace anywhere.  Namespaces don't
apply to PIs.  yelp:chunk-depth just looks like it's namespaced, but
it's not.

--
Shaun





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]