Oxygen XML Editor
 
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

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


Subject: RE: [xsl] Find and change an attribute in a Processing Instruction
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Mon, 30 Jan 2006 21:42:33 -0000

> 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. 

Almost right, but it needs to be in curlies: name="{local-name()}". Either
form will work since a PI never has a prefix.

Michael Kay
http://www.saxonica.com/


Current Thread
 
© 2002-2008 SyncRO Soft Ltd. All rights reserved. | Sitemap | Privacy Policy
This website was created & generated with <oXygen/> XML Editor
Keywords