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?


Thanks for all the suggestions! My initial results (albeit backwards) solve an immediate problem my group has, so I'll live with that for the moment and dig further into your suggestions when I have a bit more time.    

Thanks again!
cheri
-----Original Message-----
From: David Cramer (Tech Pubs) [mailto:dcramer@motive.com] 
Sent: Thursday, May 24, 2007 1:38 PM
To: docbook-apps@lists.oasis-open.org; Dennison, Cheri
Subject: RE: [docbook-apps] profiling=hiding?

Oh, if you do need to use <exec> for some reason, try <arg line="profile.condition='pdf'"/> instead of using the value attr on arg. I think with value it was treating the whole string (including the ='pdf' part as an argument):

http://ant.apache.org/manual/using.html#arg

David

> -----Original Message-----
> From: David Cramer (Tech Pubs)
> Sent: Thursday, May 24, 2007 3:28 PM
> To: docbook-apps@lists.oasis-open.org; Dennison, Cheri
> Subject: RE: [docbook-apps] profiling=hiding?
> 
> Cheri,
> Are you using <exec> to call Saxon? Try using the <xslt> task--it's 
> much better for this if you're using a java xslt processor. In the 
> following example, assume the properties condition, saxon_class_path, 
> in, out, stylesheet_path, and xslt-force-regeneration, are defined 
> elsewhere:
> 
> 	<xslt processor="trax"
> 	  classpath="${saxon_class_path}"
> 	  in="${in}"
> 	  out="${out}"
> 	  style="${stylesheet_path}"
> 	  force="${xslt-force-regeneration}">
> 	  <param name="profile.condition" 
> expression="${condition}" if="condition"/>
> 	</xslt>
> 
> Using the if attribute on param tells it only to pass in that param if 
> the property condition has been set (e.g. from the command line or a 
> build file that imports this build file or whatever).
> 
> http://ant.apache.org/manual/CoreTasks/style.html
> 
> David
> 
> 
> > -----Original Message-----
> > From: M.Canales.es [mailto:macana@macana-es.com]
> > Sent: Thursday, May 24, 2007 2:36 PM
> > To: docbook-apps@lists.oasis-open.org
> > Subject: Re: [docbook-apps] profiling=hiding?
> > 
> > El Jueves, 24 de Mayo de 2007 21:03, Dennison, Cheri escribió:
> > 
> > > But
> > > <arg value="profile.condition='pdf'" /> actually causes
> > something to
> > > be hidden in the PDF. It's just the exact opposite of
> what I think
> > > should be hidden.
> > 
> > I don't know ant or Saxon, but in some shells the behavior
> of single
> > quotes and double quotes is not the same. Can you try with this?
> > 
> >  <arg value='profile.condition="pdf"'/>
> > 
> > > I'm not sure I understand what you mean by "setting the stylesheet
> > > parameter within your customization layer".   Do you mean setting
> > > profile.condition in my customization layer? Doesn't the
> condition
> > > need to be set in the first step when processing with
> > profile.xsl, not
> > > in the second step when processing with my customized stylesheet?
> > 
> > Just create a custom-profile.xsl file that import
> profile.xsl and set
> > profile.condition param.
> > 
> > --
> > Manuel Canales Esparcia
> > Usuario de LFS nº2886:       http://www.linuxfromscratch.org
> > LFS en castellano: http://www.escomposlinux.org/lfs-es
> > http://www.lfs-es.info
> > TLDP-ES:                           http://es.tldp.org
> > 
> > 

> 


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