Loading ...
Sorry, an error occurred while loading the content.

Re: Any way to condition an element on transtype (xhtml or PDF)?

Expand Messages
  • michaelzbudapest
    We do the same as Paul. Which makes me feel alright!
    Message 1 of 3 , Feb 1 1:45 PM
    • 0 Attachment
      We do the same as Paul. Which makes me feel alright!


      --- In dita-users@yahoogroups.com, Paul Masalsky <paulmasalsky@...> wrote:
      >
      > We have this situation for cross references, too. Some topics are included in PDFs but not in help systems. Other topics, included in both PDF and help, might cross reference topics that are excluded from the help systems.
      >
      > To include those cross references for PDF, we use <xref audience="PDF_user"> (or similar for the parent of <xref>, such as a <p>). To exclude them for help generation, we specify audience="help_user" in our ditaval files, which has the effect of excluding the cross references identified by audience="PDF_user".
      >
      > It bends the meaning of the "audience" attribute a bit, but we find it has worked pretty well.
      >
      > Paul Masalsky - paulmasalsky@...
      > EMC
      >
      >
      >
      >
      > ________________________________
      > From: steve_j_fogel <steve.fogel@...>
      > To: dita-users@yahoogroups.com
      > Sent: Sat, January 30, 2010 3:40:01 AM
      > Subject: [dita-users] Any way to condition an element on transtype (xhtml or PDF)?
      >
      >  
      > Hi, all...
      >
      > Anyone know of a way to condition elements within a DITA topic based on the transtype (xhtml or PDF)?
      >
      > I have found situations where I'd like to word a sentence differently for HTML and for PDF. An example would be when you introduce a series of child topics in a parent topic with collection-type= "sequence" . The child topic titles are numbered in the parent topic in xhtml, but not in PDF.
      >
      > I could obviously write around this, but conditioning the text would be nice.
      >
      > Thx
      >
      > Steve
      >
    Your message has been successfully submitted and would be delivered to recipients shortly.