Re: [xsl] Find and change an attribute in a Processing Instruction

Subject: Re: [xsl] Find and change an attribute in a Processing Instruction
From: "Rick Quatro" <frameexpert@xxxxxxxxxxxx>
Date: Mon, 30 Jan 2006 15:48:08 -0500
Hi Jon,

<xsl:processing-instruction name="name()">

gives me

Error at xsl:processing-instruction on line 30 of file:/C:/DATA/ProgramInstaller
s/Saxon/saxonb8-5/stylesheet01.xsl:
XTDE0890: Processing instruction name {name()} is not a valid NCName
Transformation failed: Run-time errors were reported


<xsl:processing-instruction name="local-name()">

gives me a similar error. Thanks.

Rick


Memory is a little rusty here, but off the top of my head I think that processing nodes in the XPath model aren't associated with a stylesheet but do have names, so either :

<xsl:processing-instruction name="name()">

or

<xsl:processing-instruction name="local-name()">

should do the trick.  Not entirely positive though, might want to
double-check the XPath spec on it.

Current Thread