xsl-list
[Top] [All Lists]

AW: Closing and reopening hierarchically structured elements

2005-02-14 06:38:33
Hi Michael,

I must consider that I have quite some trouble explaining my special use case, 
but I'll try to build up a solution on basis of your recommendation.
Thank you very much!

wbr,
Roman

-----Ursprüngliche Nachricht-----
Von: Michael Kay [mailto:mike(_at_)saxonica(_dot_)com] 
Gesendet: Montag, 14. Februar 2005 14:34
An: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Betreff: RE: [xsl] Closing and reopening hierarchically 
structured elements

I haven't tried to study your particular problem, I'm afraid.

The general design approach to these problems is to 

* start by defining the result tree that you want to produce

* for each element node in the result tree, write a template 
rule that outputs that element

* then think about the conditions under which you want that 
template rule to be fired, and write appropriate match 
patterns and/or apply-templates instructions 

Michael Kay
http://www.saxonica.com/

-----Original Message-----
From: Huditsch Roman [mailto:Roman(_dot_)Huditsch(_at_)lexisnexis(_dot_)at]
Sent: 14 February 2005 13:28
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: AW: [xsl] Closing and reopening hierarchically structured 
elements

Hi Michael,

Thanks very much for your reply.
Actually, I though about that before, but since I could not imagine 
any other solution and being absolutly desperate, I though 
this would 
be my last escape route...
My problem is that the table must appear at the same 
logical position 
as before...
How can the grouping mechanism help me at this position?
Is there a simpler way in XSLT 2.0?

Thanks very much for your patience.

wbr,
Roman


-----Ursprüngliche Nachricht-----
Von: Michael Kay [mailto:mike(_at_)saxonica(_dot_)com]
Gesendet: Montag, 14. Februar 2005 13:42
An: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Betreff: RE: [xsl] Closing and reopening hierarchically 
structured 
elements

The second step involves closing all ancestor elements 
before my 
table.
Generating an <fo:block span="all">, including my table
markup within
and re-opening my closed ancestor elements (including all
attributes
defined before).

no, no! XSLT instructions write nodes to a tree, they 
don't "open" 
and "close" elements. Writing a node is an indivisible operation.

Read http://www.jenitennison.com/xslt/grouping, and
inwardly absorb...

Michael Kay
http://www.saxonica.com/





--~------------------------------------------------------------------
XSL-List info and archive:  
http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: 
<mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--




--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: 
<mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--





--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: 
<mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--



--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--