[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Question:- Are Root Rules inherited?
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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|