|
Subject: Re: [xsl] xslt create a variable from external xml file From: "Martin Honnen martin.honnen@xxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> Date: Tue, 22 Aug 2023 15:21:19 -0000 |
On 22.08.2023 17:10, LEGAULT, PHILLIP plegault@xxxxxxxxxx wrote:
>
> This one gives me an error,
>
> Error at xsl:param on line 266 column 107 of process.xsl:
>
> B XPST0003 XPath syntax error at char 39 on line 266 near
> {...environment => normalize-sp...}:
>
> B B B Unexpected token ">" in path expression
>
> Error at xsl:param on line 266 column 107 of process.xsl:
>
> B XPST0081 SequenceType syntax error at char 0 in {xs:string}:
>
> B B B Undeclared namespace prefix {xs}
>
> Failed to compile stylesheet. 2 errors detected.
>
Syd used XPath 3.1 syntax with XSLT 3, if you use a version of Saxon
that only supports XSLT 2.0 with XPath 2.0 then change
> B <xsl:param name="env" select="document('./inv/env.xml')/environment
> => normalize-space()" as="xs:string"/>
>
to
B <xsl:param name="env"
select="normalize-space(document('inc/env.xml')/environment)"/>
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| Re: [xsl] xslt create a variable fr, LEGAULT, PHILLIP ple | Thread | Re: [xsl] xslt create a variable fr, LEGAULT, PHILLIP ple |
| Re: [xsl] xslt create a variable fr, LEGAULT, PHILLIP ple | Date | Re: [xsl] Got it working (using Sax, Christophe Marchand |
| Month |