Re: {RFC] XSLT for draft watermarking?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Uttered Karsten Wade <kwade@xxxxxxxxxx>, spake thus:

> On Wed, 2005-11-30 at 08:19 -0500, Paul W. Frields wrote:
> 
> > If I remember correctly, there's an order to how XSL stuff is inherited,
> > right?  Like, "whoever's first wins," although it could be the opposite,
> > I'm not sure.  
> I think it's the last instruction wins, but I also am not sure. :)

"Most important" wins.  You can only set a <xsl:param/> or
<xsl:variable/> once, no matter how many appearances are made.
Importance is determined by the "nesting level" of the instance.  For
example, assume an XSL include() arrangement like this:

#1	xsl/main-html.xsl
#2		/usr/shar/sgml/docbook/xsl-stylesheets/html/docbook.xsl
#3			/what/ever/goes/on/in/there.xsl
#3			/its/a/mystery/to/me.xsl
#3			/tommy/can/you/hear/me.xsl
#2		redhat.xsl
#2		html-common.xsl

The left column represents the priority of the definitions in a file.
The right colum shows the XSL include hierarchy.

So definitions in #1, xsl/main-html.xsl take precedence over any
definitions further down the include tree.  This is how we can
override any foolish settings deep within the DocBook distribution
without resorting to rocket surgery on the files...

At a given precedence, first definition wins.

HTH

Attachment: pgprraejWC9BY.pgp
Description: PGP signature

-- 

fedora-docs-list@xxxxxxxxxx
To unsubscribe: 
https://www.redhat.com/mailman/listinfo/fedora-docs-list

[Index of Archives]     [Fedora Users]     [Fedora Desktop]     [Red Hat 9]     [Yosemite News]     [KDE Users]

  Powered by Linux