freelanceprogrammers.org Forum Index » XML / XSL

Re: Profiling in XML


View user's profile Post To page top
cramerdw Posted: Fri Jun 03, 2005 8:11 am


Joined: 20 May 2005

Posts: 7
Re: Profiling in XML
> I am looking for a standard, non-customized way to create a
> profiling (conditionized text) strategy for several different
> doc groups at my company using XML. While Docbook offers a
> handfull of profiling attributes, there are a couple of
> issues with this:
>
> a) you cannot set multiple attribute values

If you mean what I think you mean :-) then that`s not true:
http://www.sagehill.net/docbookxsl/MultiProfile.html: `You can assign
more than one key word to a profiling attribute by separating them with
semicolons. For example, if you profile on os with the key words linux,
unix, or win, then an element that applies to both linux and unix should
have the attribute os="linux;unix". Then it will be selected if either
of linux or unix is specified at processing time.`

> b) attributes, as a rule, are discouraged

By whom? Why?

The real reason I can think of for making careful use of profiling is
that it can be the short road to ifdef hell. Another thing to be careful
of with profiling generally is the possiblity that writers will profile
away xref targets or create documents that become invalid in other ways
once profiled (e.g. they profile away the <para> rather than the
<listitem> that contains it, or profile away all the <listitem>s in a
list). You won`t know if the doc is really valid till you`ve generated
every combination of things you profile by. Still, if you don`t like
attributes, docbook has elements for storing metadata:
http://docbook.org/tdg/en/html/blockinfo.html. You could easily process
out blocks based on the contents of the *info elements.

> We are thinking of metadata as one option instead of profiling.

The attribute values by which you profile are a kind of metadata. I`d
suggest describing the problem you need to solve and the metadata
approach you envision in more detail. I think folks could help you out
more with the additional information.

David
Reply with quote
Send private message
Post new topic Reply to topic
Display posts from previous:   
 

All times are GMT
Page 1 of 1
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Freelace Website Designer - Customer web design and software building.
Booking Calendar - reservation calendar script
Land Surveying - total station instruments and equipments
China Wholesale - Electronics Products
Character Studio - Tutorials and Help