Sign Up
Search
Options
search
Chat
Help
News
Log in
Not Logged in
Home
»
Boards
»
Stylus Studio Developer Network
»
XSLT Help and Discussion
»
Attribute Value Concatenation
Topic
Topic Page
1
2
3
4
5
6
7
8
9
Prev Topic
Next Topic
next
Subject:
Attribute Value Concatenation
Author:
Tadd Stuart
Date:
06 Mar 2008 11:11 AM
Originally Posted: 06 Mar 2008 11:09 AM
Is there a way to obtain all values of a specific set of attributes into a single <xsl:variable>?
XML Sample:
<?xml version="1.0"?>
<DataSet>
<c i="2" desc="DataTable">
<m i="55" v="1"/>
<m i="6" v="0.60"/>
<m i="10" v="RA"/>
<m i="11" v="90"/>
<m i="14" v="PRIMARY"/>
<m i="15" v="GT 100"/>
<m i="16" v="65"/>
<m i="17" v="RESIDENT"/>
<m i="57" v="12M"/>
<m i="19" v="Y"/>
<m i="20" v="12"/>
</c>
</DataSet>
XPath Sample:
//c/m/@v
Variable Sample:
<xsl:variable name="AllText" select="//c/m/@v"/>
But this only gives me the first value and I am looking for all values of @v concatenated together.
top
Subject:
Attribute Value Concatenation
Author:
James Durning
Date:
10 Mar 2008 11:17 AM
<xsl:variable name="AllText">
<xsl:for-each select="//c/m/@v">
<xsl:value-of select="."/>
</xsl:for-each>
</xsl:variable>
Topic Page
1
2
3
4
5
6
7
8
9
Prev Topic
Next Topic
Powered by
Stylus Studio
, the world's leading
XML IDE
for
XML
,
XSLT
,
XQuery
,
XML Schema
,
DTD
,
XPath
,
WSDL
,
XHTML
,
SQL/XML
, and
XML Mapping
!
Go to Conference:
Select Conference
Stylus Studio Feature Requests
Stylus Studio Technical Forum
Website Feedback
XSLT Help and Discussion
XQuery Help and Discussion
Stylus Studio FAQs
Stylus Studio Code Samples & Utilities
Stylus Studio Announcements
go
Log In Options
Username:
Password:
Site Map
|
Privacy Policy
|
Terms of Use
|
Trademarks
Stylus Scoop XML Newsletter:
Stylus Studio® and DataDirect XQuery ™are from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2016 All Rights Reserved.