This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

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


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@es.co.nz      :  danm@web.co.nz    :
:  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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]