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

Changed properties in FOP 0.15.0

Subject: Changed properties in FOP 0.15.0
From: Arved Sandstrom <Arved_37@xxxxxxxxxxxxxx>
Date: Sun, 03 Dec 2000 11:37:30 -0400
property files in fop
In response to Juan Migoya, who wrote:

> I have found that there has been a significant change in
> the properties FOP allows (for example, it doesn't allow
> KEEP-TOGETHER or compound properties as ".minimum").

> Is there a way to check what are the properties we can change
> in our old xsl, and how?

Probably the best way is to become familiar with the new properties files. 
For attributes on elements in the fo: (XSL-FO) namespace, take a look at 
src/codegen/foproperties.xml.

As an example, let's assume that you're interested in 'space-before'. This 
is typed as

  <property>
    <name>space-before</name>
    <use-generic>GenericSpace</use-generic>
  </property>

Looking up GenericSpace, we find that it is declared as

  <property type="generic">
    <name>generic-space</name>
    <class-name>GenericSpace</class-name>
    <inherited>false</inherited>
    <datatype>Space</datatype>
    <default>0pt</default>
    <compound>
      <subproperty>
        <name>minimum</name>
        <datatype>Length</datatype>
      </subproperty>
      <subproperty>
        <name>optimum</name>
        <datatype>Length</datatype>
      </subproperty>
      <subproperty>
        <name>maximum</name>
        <datatype>Length</datatype>
      </subproperty>
      <subproperty>
        <name>precedence</name>
        <datatype>Number</datatype>
      </subproperty>
      <subproperty>
        <name>conditionality</name>
        <datatype>String</datatype>  <!-- NCName or Enum ??? -->
      </subproperty>
    </compound>
  </property>

and you'll see that .minimum is OK.

Caution: just because properties _specification_ support is vastly improved 
(thanks to Karen Lease) does not necessarily mean that support for the 
specific property itself is quite as good. In general, though, we don't add 
properties into the properties files until there is some support for them.

Arved Sandstrom

Senior Developer
e-plicity.com (www.e-plicity.com)
Halifax, Nova Scotia
"B2B Wireless in Canada's Ocean Playground"


 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.