You should read the section in the recommendation regarding conflicts:

http://www.w3.org/TR/xslt#conflict

This is one of the cases that is an error, but is recoverable:

   "It is an error if this leaves more than one matching template rule. An
   XSLT processor may signal the error; if it does not signal the error, it
   must recover by choosing, from amongst the matching template rules that
   are left, the one that occurs last in the stylesheet."

If you want your stylesheets to be portable, you must either assign
explicit priorities or remove the conflicting templates.  Otherwise, a
processor is free to reject your stylesheet.

Dave



                                                                                       
                                                           
                      "Cory Isaacson                                                   
                                                           
                      \(Compuflex\)"           To:      <[EMAIL PROTECTED]>     
                                                           
                      <cisaacson@compu         cc:      (bcc: David N 
Bertoni/Cambridge/IBM)                                                      
                      flex.com>                Subject: RE: StreamSource Question      
                                                           
                                                                                       
                                                           
                      03/27/2002 08:31                                                 
                                                           
                      AM                                                               
                                                           
                      Please respond                                                   
                                                           
                      to xalan-dev                                                     
                                                           
                                                                                       
                                                           
                                                                                       
                                                           



Joseph,

It turned out this was unrelated. I had a bug in my stylesheet. I would
like
to clarify my understanding of one point of XSLT:

If you have two templates which a given Node can match, it appears that the
first one it finds is applied, and then no others (unless they are referred
to within the first one). Is that correct? This is what threw me off, as I
was not getting a match where I intended, but I had another more general
template match below which was being applied.

Thanks,

Cory

-----Original Message-----
From: Joseph Kesselman/CAM/Lotus [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, March 27, 2002 6:16 AM
To: [EMAIL PROTECTED]
Subject: Re: StreamSource Question



>I am trying to build a Transformer from a String, so I am creating a
StringReader as a
>StreamSource. I know that the String contains a valid XSLT document.
>Is there any reason this should not work?

Not that I can think of. More details about why you think it isn't working
might help us advise you better.








Reply via email to