[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Cascading ( Or processing twice?) how to apply-templates to

Subject: Cascading ( Or processing twice?) how to apply-templates to results
From: Dan Morrison <dman@xxxxxxxx>
Date: Sun, 23 Apr 2000 19:12:40 +1200
xsl process xml twice
Matt Sergeant wrote:
> 
> Sorry - I know this isn't particularly an XSL or XPath question, but it is
> particularly relevant...

... And I don't know if my issue has anything to do with yours but it
sounded similar at first...

I'm wondering what to call to get two transformations applied to one XML
document, one after the other.
In my current case I have a sitemap, and an XSL which can turn the
sitemap into a new menu-style logical arrangement.
I also have an XSL which will translate this menu-style data into an
HTML Menu Display.
I choose to have these two processes modular, as I have other uses for
the menu->HTML process.

The thing is, that after apply-templates has dealt with my nodes, they
are part of the result tree, and will not be parsed again. Is there an
XSLT invocation to re-interpret the results?


XML -> XML -> HTML
    ^      ^
    |      |
   XSLa    XSLb


I have no problem with the two XSLs co-existing simultaniously using
import or namespaces or suchlike.

Sorry if the answer is obvious, but I can't imagine the term for what it
is I'm trying to do.

.dan.

------------------------------
Further illustration.

The real thing is exponentially more complex than this docile
illustration. The Menus in fact generate nested DHTML pop-ups using a
Turing-like recursion. 
The Q is how to get my <xsl:template match="Menu">... to fire.


<item name="page 1">
 <item name="page 1A"/>
 <item name="page 1B"/>
</item>

    |
    V 

<Menu name="page 1">
 <MenuItem name="page 1A"/>
 <MenuItem name="page 1B"/>
</Menu>

    |
    V

<blockquote>
 <h2>page 1</h2>
  <h3>page 1A</h3>
  <h3>page 1A</h3>
</blockquote>


:=====================:====================:
: Dan Morrison        : The Web Limited    :
:  http://here.is/dan :  http://web.co.nz  :
:  dman@xxxxxxxx      :  danm@xxxxxxxxx    :
:  04 384 1472        :  04 495 8250       :
:  025 207 1140       :                    :
:.....................:....................:
: If ignorance is bliss, why aren't more people happy?
:.........................................:


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.