xsl-list
[Top] [All Lists]

[xsl] Antwort: RE: [xsl] Taking flat XML and parsing into multi level nexted

2007-08-08 04:19:11
mike(_at_)saxonica(_dot_)com schrieb am 08.08.2007 12:51:58:

I'm afraid doing a 1.0 solution is pure masochism, so I'll leave that to
others.

I'm not a masochist :)

In order to get rid of the delete-template 

<xsl:template match="*" /> 

in the stylesheet I just sent to the list, replace 

<xsl:apply-templates 
select="following-sibling::*[preceding-sibling::*[1][self::categoryEnd and 
text() = $thisName]]" />

with

<xsl:apply-templates select="following-sibling::*[not(self::categoryEnd) 
and preceding-sibling::*[1][self::categoryEnd and text() = $thisName]][1]" 
/>

Greetings 
Christoph


If you are not the intended addressee, please inform us immediately that you 
have received this e-mail by mistake and delete it. We thank you for your 
support.

--~------------------------------------------------------------------
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>
--~--