[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

apply-templates - wrap

Subject: apply-templates - wrap
From: Eric Smith <Eric.Smith@xxxxxxxxxxxx>
Date: Tue, 20 Nov 2001 09:38:57 +0100
template wrap
Silly description, but I want a template to wrap a fo:inline (or
should than be _an_ fo:inline) that does not have a parent:: which
is a block.  This is to avoid that fo: error of "inline cannot be
directly under flow".

So in all templates like the example for italics below and friends
bold, underline etc, I want to call a template that checks
for test="not(parent::para)", anid if found, will add a
<block> above the <xsl:apply-templates/> and a </block> below/
i.e. wrap the inline with a block.

  <xsl:template match="i">
    <fo:inline font-style="italic">
      <xsl:apply-templates/>
    </fo:inline>
  </xsl:template>

-- 
Eric Smith - currently using xalan and fop on linux

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.