Subject: Re: Question:- Are Root Rules inherited? From: Paul Prescod <papresco@xxxxxxxxxxxxxxxx> Date: Sat, 19 Sep 1998 10:33:49 -0500 |
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 |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Question:- Are Root Rules inherited, Frank Boumphrey | Thread | 3.24 Inheritance, Frank Boumphrey |
question from a newbie...please hel, keshlam | Date | Re: XSL and entities, Paul Prescod |
Month |