[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: apply-templates and priorities
Simon,
Actually, "*" doesn't match the same node as "/". "*" matches any element node (that is a child of something, which all elements are). "/" matches the root node (which is not an element). This explains your result, because the template matching "/" is always fired first, and it contains no xsl:apply-templates instruction, so node is selected for processing, so the other template never gets matched. The priorities are a red herring here. Match them both to "/" and you'll see what you expect. Cheers, Wendell At 05:55 PM 9/15/2004, you wrote: I'm confused about how the priorities of templates are computed. Using saxon 8.0, this stylesheet: ====================================================================== Wendell Piez mailto:wapiez@xxxxxxxxxxxxxxxx Mulberry Technologies, Inc. http://www.mulberrytech.com 17 West Jefferson Street Direct Phone: 301/315-9635 Suite 207 Phone: 301/315-9631 Rockville, MD 20850 Fax: 301/315-8285 ---------------------------------------------------------------------- Mulberry Technologies: A Consultancy Specializing in SGML and XML ======================================================================
|
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
|