[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
Re: [xsl] NMTOKENS problem
Subject: Re: [xsl] NMTOKENS problem From: "Christopher R. Maden crism@xxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> Date: Thu, 12 Feb 2015 20:27:05 -0000 |
On 02/12/2015 02:11 PM, Craig Sampson craig.sampson@xxxxxxx 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
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] NMTOKENS problem, Craig Sampson craig. | Thread | Re: [xsl] NMTOKENS problem, G. Ken Holman g.ken. |
Re: [xsl] NMTOKENS problem, Eliot Kimber ekimber | Date | Re: [xsl] NMTOKENS problem, G. Ken Holman g.ken. |
Month |
Keywords