xsl-list
[Top] [All Lists]

RE: Find and change an attribute in a Processing Instruction

2006-01-30 14:42:33
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/



--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--