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

Re: Question:- Are Root Rules inherited?

Subject: Re: Question:- Are Root Rules inherited?
From: Paul Prescod <papresco@xxxxxxxxxxxxxxxx>
Date: Sat, 19 Sep 1998 10:33:49 -0500
kidnap font
I didn't see an answer for this (rather old) message come through.

Frank Boumphrey wrote:
> 
> Hi,
> 
> If I have a style sheet with the following rule, and this is the only rule
> in the whole style sheet:
> 
> <xsl:template match ="/">
>     <fo:page-sequence font-family="kidnap">
>         <xsl:process-children>
>     </fo:page-sequence >
> <xsl:template>
> 
> Which I apply to this document
> 
> <xdoc>
>     This should be in the kidnap font
>     <para>But what font is this in?</para>
> </xdoc>
> 
> Will the whole document be in 'kidnap' font, or just the text-node children
> of the root element?

This isn't really a question about inheritance of *rules*, but about
inheritance of formatting properties in the fo: namespace. Nevertheless,
the answer is yes, the paragraph will have the kidnap font. Here's what
the spec. says about that property:

font-family (DSSSL:font-family-name, CSS:-same-) 
= font-name or font-name-list

Inherited, Initial = any

 Paul Prescod  - http://itrc.uwaterloo.ca/~papresco

The past is inaccurate. Whoever lives long enough knows how much what he
had seen with his own eyes becomes overgrown with rumor, legend a
magnifying or belittling hearsay. "It was not like that at all!" -- 
he would like to exclaim, but will not, for they would have seen only 
his moving lips without hearing his voice. - Czeslaw Milosz (translated)


 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.