Subject: Re: Order of matching in multiple style-specifications... From: Paul Prescod <papresco@xxxxxxxxxxxxxxxxxxxxxxxxx> Date: Wed, 25 Jun 1997 11:19:56 -0400 |
Norman Walsh wrote: > Imagine that I have a driver and two files, a and b. In the > driver I say <style-specification use="a b"> (and all the > required entities and <external-specifications> are correct). > And there are no modes in use. > > If (element baz ...) occurs in "a" then (element (bar baz) ...) > in "b" will never get used. Right? Right. Rules in "a" are more specific than rules in "b" except if a mode in "b" is explicitly invoked. > If I have (element (bar baz) ...) in "a" and > "(element (foo bar baz) ...) in "b", will > "(element (foo bar baz))" ever get used? No, is my guess. Right. > If I have (element (foo bar baz) ...) in "a" and > "(element (bar baz) ...) in "b", will the right thing happen? > Will the definition in "a" get called for <foo><bar><baz> and > the definition in "b" get called for <fred><bar><baz>? Yes. Specificity rules only come into play when more than one construction rule applies. In your first example, "a" is more specific but in the second it doesn't apply at all. Paul Prescod DSSSList info and archive: http://www.mulberrytech.com/dsssl/dssslist
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Order of matching in multiple style, Norman Walsh | Thread | Docbook stylesheet 0.83 and 0.83e, Norman Walsh |
Re: Iteration with named let, W. Eliot Kimber | Date | Re: More thoughts on multiple style, Norman Walsh |
Month |