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

Re: Comparing with a variable position

Subject: Re: Comparing with a variable position
From: "Louis Meigret" <meigret@xxxxxxxxxxxxxxxx>
Date: Wed, 09 Oct 2002 22:18:15 -0500
Re:  Comparing with a variable position
----- Original Message -----
From: "Joerg Heinicke" <joerg.heinicke@xxxxxx>

Thank you Jörg, this seems elegant, two questions though.

> <xsl:template match="node()|@*">
>    <xsl:copy>
>      <xsl:apply-templates select="node()|@*"/>
>    </xsl:copy>
> </xsl:template>

1) Why the above template rather than the simpler
<xsl:template match="container">, I'm especially puzzled by the <xsl:copy> (I'm a newbie).

> <xsl:template match="container/text()">
>    <sub-container>
>      <xsl:value-of select="."/>
>    </sub-container>
> </xsl:template>
> 
> <xsl:template match="separator"/>
> 
> If "thus several node are possible" instead of text "mixed content" 

2) Well I do not know if it is "instead", I meant "or". Is mixed content contardictory with several nodes (text and elements)?

> means that there can be written any element or nodes in general, you 
> have to use a grouping method, which groups the nodes in <container/> by 
> their preceding or following sibling separator. There are a few examples 
> in the archives, I would search for "adding hierarchy" or "structure".

I looked and found a message with this title but the way I understand it added structure using the attributes, I do not see how this helps with the grouping.

Any help welcome.

Louis
-- 
__________________________________________________________
Sign-up for your own FREE Personalized E-mail at Mail.com
http://www.mail.com/?sr=signup

"Free price comparison tool gives you the best prices and cash back!"
http://www.bestbuyfinder.com/download.htm


 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.