xsl-list
[Top] [All Lists]

Re: [xsl] NMTOKENS problem

2015-02-12 14:27:10
On 02/12/2015 02:11 PM, Craig Sampson craig(_dot_)sampson(_at_)sas(_dot_)com 
wrote:
<context contextMappingID="{.}" docset="{$alias}" 
file="{$deliverable}.htm#{@eid}"/>

FATAL SYNTAX ERROR::
Required item type of the context item for the attribute axis is node(); 
supplied value has item type xs:string
file:/C:/java/ide/eclipse/4.4/vert-i4xis15/eclipsedata/i4xis15/Publications.XmlInformationSystem.XisBuild/Source/
Stylesheets/eRoot.xsl, line 606 column -1

Your problem is not NMTOKENS.

Your problem is that you are asking for the value of @eid in the output.
 That XPath is interpreted relative to the current context, but your
context is the token string, which has no attribute axis.  Hence the error.

You need to change that XPath to be anchored at the appropriate element
(the subSubTopic?).

~Chris
-- 
Chris Maden, text nerd  <URL: http://crism.maden.org/ >
Surround hate and force it to surrender.
GnuPG fingerprint: DB08 CF6C 2583 7F55 3BE9  A210 4A51 DBAC 5C5C 3D5E
--~----------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
EasyUnsubscribe: http://lists.mulberrytech.com/unsub/xsl-list/1167547
or by email: xsl-list-unsub(_at_)lists(_dot_)mulberrytech(_dot_)com
--~--

<Prev in Thread] Current Thread [Next in Thread>