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

Re: need help outputing summary of head elements

Subject: Re: need help outputing summary of head elements
From: UlyLee <ulyleeka@xxxxxxxxx>
Date: Mon, 19 Sep 2005 23:48:59 -0700 (PDT)
xsl help subsequence
i finally got what i wanted :D (yippeee!)

what i did was get all data of the head element then
tokenized it by spaces and tested if the first token
is in the $strRoman. then i iterate all through all
the heads that matches that parameter. :D

<xsl:template name="InsertSummary">
<xsl:param name="ParentInfo"/>
<xsl:element name="summary">
<xsl:variable name="x"
select="$ParentInfo//div/head[subsequence(tokenize(data(.),'
'),1,1) = $strRoman]"/>
<xsl:for-each select="$x">
<xsl:value-of select="."/>
<xsl:if test="position() != count($x)">
<xsl:text> &#8211; </xsl:text>
</xsl:if>
</xsl:for-each>
</xsl:element>
</xsl:template>

i still did not use the last() function cause for some
reason it always return '1' and not the position of
the last node, thats why i'm using the count()
function to determine the postion of the last node.

again thanks for all the help! :D

UlyLee


		
__________________________________ 
Yahoo! Mail - PC Magazine Editors' Choice 2005 
http://mail.yahoo.com

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.