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] Adding more profiling attributes


Thanks, Scott.
 
However, I am using Dockbook 4.4 XML and I don't know much about DB5. My customization layer has the following snippet:
 
    <xsl:param name="profile.attribute" select="'doc'"/>
    <xsl:param name="profile.value" select="'FAT'"/>

How do I expand my list? Do I just add more to it? Like...
    <xsl:param name="profile.attribute" select="'doc'"/>
    <xsl:param name="profile.value" select="'FAT'"/>
    <xsl:param name="profile.attribute" select="'type'"/>
    <xsl:param name="profile.value" select="'ZDR'"/>
    <xsl:param name="profile.attribute" select="'model'"/>
    <xsl:param name="profile.value" select="'DWSR2500'"/>

I don't recognize your snippet of code. Is that the RNG schema?
 
Sorry if I'm a bit dense on this topic.
 
Regards,
Dean
 
 
________________________________

From: Scott Hudson [mailto:scott.hudson@flatironssolutions.com]
Sent: Fri 1/5/2007 6:46 PM
To: Nelson, Dean
Cc: docbook-apps@lists.oasis-open.org
Subject: Re: [docbook-apps] Adding more profiling attributes



Hi Dean,

Absolutely! I typically create custom profiling attributes for each of
my clients because of their specific needs. You just have to add them to
your customization layer, and redefine the db effectivity attributes to
call in your customization.

In DB5, it would look something like this:
   my.effectivity =
   attribute customprofile { text }

  db.effectivity.attributes |=
   db.audience.attribute?
   & db.condition.attribute?
   & db.conformance.attribute?
   & db.revision.attribute?
   & db.security.attribute?
   & db.userlevel.attribute?
   & my.effectivity?

You'll also need to adjust your stylesheet customization layer to
process the new attribute. See
http://www.sagehill.net/docbookxsl/CustomProfilingAttr.html

Best regards,

--Scott

Nelson, Dean wrote:
> Hello,
> 
> I have used the "profile.attribute" because none of the standard Docbook
> attributes (os,lang,etc) really fit my scenario. To be able to maintain
> the docs through the years, the attributes needs to be something
> meaningful to fit our needs.
> 
> How can I add more profile attributes to make my profiling fit my needs?
>
> 
>
> Cheers,
>
> Dean Nelson  
>
> 





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