Hi,

Instead of the slash operator, change it to:

for $x in $parsedJson return ....

Or in 3.0 there is the ! operator.

(Sent via phone)

cheers
andrew

On 15 Jun 2013 10:41, "Dave Pawson" <dave.pawson@gmail.com> wrote:
>
> an external file, json
>
>  <xsl:variable name="jsonfile" select="unparsed-text('eg.json')"
> as="xs:string"/>
>                     <xsl:variable name="parsedJson"
> select="parse-json($jsonfile)" as="item()*"/>
>                     <xsl:for-each select="($parsedJson)/*"> ***
>                         <xsl:value-of select="."/> <br/>
>                     </xsl:for-each>
>
> Saxon reports, against **** line
>
>
> XPTY0019: Required item type of first operand of '/' is node();
> supplied value has item type (map(xs:string, (map(xs:integer,
> (map(xs:string, xs:anyAtomicType)))
>
> Docs say parse-json is implemented... A bug? Or am I misinterpreting the spec?
>
> regards
>
> --
> Dave Pawson
> XSLT XSL-FO FAQ.
> Docbook FAQ.
> http://www.dpawson.co.uk
>
> ------------------------------------------------------------------------------
> This SF.net email is sponsored by Windows:
>
> Build for Windows Store.
>
> http://p.sf.net/sfu/windows-dev2dev
> _______________________________________________
> saxon-help mailing list archived at http://saxon.markmail.org/
> saxon-help@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/saxon-help