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] Changing Text Color


Oops, make that:

   <xsl:template match="text()[ ancestor::*/@status = 'draft' ]| xref[
ancestor::*/@status = 'draft' ]">
 	<fo:wrapper xmlns:fo="http://www.w3.org/1999/XSL/Format";
color="blue"><xsl:apply-imports/></fo:wrapper>
   </xsl:template> 

(I had ancestor::*/@status = 'final' rather than ancestor::*/@status =
'draft' in the predicate to xref in my original post).

David

> -----Original Message-----
> From: David Cramer 
> Sent: Wednesday, January 30, 2008 2:08 PM
> To: Dave Cushman; docbook-apps@lists.oasis-open.org
> Subject: RE: [docbook-apps] Changing Text Color
> 
> You could do something like this:
> 
>   <xsl:template match="text()[ ancestor::*/@status = 'draft' 
]| xref[ ancestor::*/@status = 'final' ]">
> 	<fo:wrapper xmlns:fo="http://www.w3.org/1999/XSL/Format";
> color="blue"><xsl:apply-imports/></fo:wrapper>
>   </xsl:template> 
> 
> If you're going to have final stuff nested in draft stuff, 
> you may want to just match text()[ancestor::*@status] and 
> then have a choose/when inside that. You can do the same 
> thing with html output using spans and css. 
> 
> David
> 
> > -----Original Message-----
> > From: Dave Cushman [mailto:dave@cushmanroad.com]
> > Sent: Wednesday, January 30, 2008 1:53 PM
> > To: docbook-apps@lists.oasis-open.org
> > Subject: [docbook-apps] Changing Text Color
> > 
> > For print output, how do I change the text in a draft 
> section to be a 
> > different color than text in a final section?  For example:
> > 
> > <section status="draft">
> >     <para>When processed, this text should be red (or some other 
> > color).</para> </section> <section status="final">
> >     <para>When processed, this text should be black.</para> 
> </section>
> > 
> > Thanks,
> > Dave
> > 
> > 
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail: 
> docbook-apps-unsubscribe@lists.oasis-open.org
> > For additional commands, e-mail: 
> > docbook-apps-help@lists.oasis-open.org
> > 
> > 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org
> For additional commands, e-mail: 
> docbook-apps-help@lists.oasis-open.org
> 
> 


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