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

RE: This could be simple, but not for me!

Subject: RE: This could be simple, but not for me!
From: "Andreas L. Delmelle" <a_l.delmelle@xxxxxxxxxx>
Date: Tue, 25 May 2004 21:34:38 +0200
x09
> -----Original Message-----
> From: Andreas L. Delmelle [mailto:a_l.delmelle@xxxxxxxxxx]
>

Hi,

Reconsidering this, I would move the xsl:if out of the Name template, and
the enclosed xsl:value-of into the City template...

So, instead of:
> <xsl:template match="City">
>   <xsl:param name="pNo" />
>   <xsl:apply-templates select="following-sibling::A/B/Name[
>                          following::Info[1]/Detail/@no=$pNo]" />
> </xsl:template>
>
> <xsl:template match="Name">
>   <xsl:if test="position()=1">
>     <xsl:value-of select="concat('&#x0A;&#x09;',
>                     ancestor::Community/City)" />
>   </xsl:if>
>   <xsl:value-of select="concat('&#x0A;&#x09;&#x09;',.)" />
> </xsl:template>
>

I'd make it:
> <xsl:template match="City">
>   <xsl:param name="pNo" />
>   <xsl:value-of select="concat('&#x0A;&#x09;',.)" />
>   <xsl:apply-templates select="following-sibling::A/B/Name[
>                          following::Info[1]/Detail/@no=$pNo]" />
> </xsl:template>
>
> <xsl:template match="Name">
>   <xsl:value-of select="concat('&#x0A;&#x09;&#x09;',.)" />
> </xsl:template>


Greetz,

Andreas

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.