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

Re: NMTOKENS problem

Subject: Re: NMTOKENS problem
From: "G. Ken Holman g.ken.holman@xxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Thu, 12 Feb 2015 20:32:26 -0000
Re:  NMTOKENS problem
At 2015-02-12 20:11 +0000, Craig Sampson craig.sampson@xxxxxxx wrote:
Can anyone tell me what the problem is and how to fix it?

I can tell you why you get the error (don't kick yourself too hard), but how to fix it is up to you based on what you need.


<xsl:for-each select="tokenize(@softwareContextID,' ')">

That sets the context to be a string.


<context contextMappingID="{.}" docset="{$alias}" file="{$deliverable}.htm#{@eid}"/>

And there you are trying to obtain the eid= attribute of the string.


And so you get the message:

Required item type of the context item for the attribute axis is node(); supplied value has item type xs:string

My guess is you'll have to put the @eid into a variable when the context is subSubTopic before tokenizing and then use the variable.


I hope this helps.

. . . . . . . Ken

--
Check our site for free XML, XSLT, XSL-FO and UBL developer resources |
Free 5-hour lecture:  http://www.CraneSoftwrights.com/links/video.htm |
Crane Softwrights Ltd.             http://www.CraneSoftwrights.com/s/ |
G. Ken Holman                    mailto:gkholman@xxxxxxxxxxxxxxxxxxxx |
Google+ profile:       http://plus.google.com/+GKenHolman-Crane/about |
Legal business disclaimers:     http://www.CraneSoftwrights.com/legal |


--- This email has been checked for viruses by Avast antivirus software. http://www.avast.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.