[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
[Recent Entries]
[Reply To This Message]
Re: Matching attribute
At 2007-09-24 13:35 +0530, Buddhi Dananjaya wrote:
XSL ...
<xsl:template match="Object">
<xsl:choose>
<xsl:when test="[@xsi:type='CTextEx' or @xsi:type='CTextRingEx']">
<xsl:copy>
..................................
XML ...
<Object xsi:type="CTextEx">
<maxQSwitch>500</maxQSwitch>
.................
Here I want to check the xsi:type attribute and do some
operations... But I am getting an error at " xsl:when", Where am I
gone wrong. Please help me...
Remove the square brackets "[" and "]" ... when you review XPath
syntax you will see these are reserved for specifying predicates on
node tests and sets.
I hope this helps.
. . . . . . . . . . . Ken
--
Upcoming public training: UBL and code lists Oct 1/5; Madrid Spain
World-wide corporate, govt. & user group XML, XSL and UBL training
RSS feeds: publicly-available developer resources and training
G. Ken Holman mailto:gkholman@xxxxxxxxxxxxxxxxxxxx
Crane Softwrights Ltd. http://www.CraneSoftwrights.com/s/
Box 266, Kars, Ontario CANADA K0A-2E0 +1(613)489-0999 (F:-0995)
Male Cancer Awareness Jul'07 http://www.CraneSoftwrights.com/s/bc
Legal business disclaimers: http://www.CraneSoftwrights.com/legal
|
PURCHASE STYLUS STUDIO ONLINE TODAY!
Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!
Download The World's Best XML IDE!
Accelerate XML development with our award-winning XML IDE - Download a free trial today!
Subscribe in XML format
RSS 2.0 |
|
Atom 0.3 |
|
|