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

Re: Transform some attributes into HTML span elements

Subject: Re: Transform some attributes into HTML span elements with delimiters (specific format)
From: Mukul Gandhi <gandhi.mukul@xxxxxxxxx>
Date: Fri, 28 May 2010 04:51:12 +0530
Re:  Transform some attributes into HTML span elements
yes, sure :)

your code-fragment is certainly well readable than mine.

On Fri, May 28, 2010 at 3:42 AM, Florent Georges <lists@xxxxxxxxxxxx> wrote:
> Mukul Gandhi wrote:
>
> B Hi,
>
>> I think, I would have done this as following:
>
>> <xsl:template match="InspectionReportInput">
>> B  <span id="firstName"><xsl:value-of select="@firstName"
>> /></span>B <span id="lastName"><xsl:value-of select="@lastName"
>> /><xs:text>,B </xsl:text><xsl:value-of select="@city" />
>> </xsl:template>
>
> B I am always surprised to see that many people try very hard to
> be "more concise", even when that ends up less readable. B Why not
> simply that?:
>
> B  B <!--
> B  B  B  B Format an inspection report element by using the
> B  B  B  B appropriate SPAN elements and text separators.
> B  B -->
> B  B <xsl:template match="InspectionReportInput">
> B  B  B  <span id="firstName">
> B  B  B  B  B <xsl:value-of select="@firstName"/>
> B  B  B  </span>
> B  B  B  <xsl:text> </xsl:text>
> B  B  B  <span id="lastName">
> B  B  B  B  B <xsl:value-of select="@lastName"/>
> B  B  B  </span>
> B  B  B  <xs:text>, </xsl:text>
> B  B  B  <span id="city">
> B  B  B  B  B <xsl:value-of select="@city"/>
> B  B  B  </span>
> B  B </xsl:template>
>
> B Regards,
>
> --
> Florent Georges
> http://fgeorges.org/



--
Regards,
Mukul Gandhi

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.