This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: processing-instruction()
- From: "J.Pietschmann" <j3322ptm at yahoo dot de>
- To: xsl-list at lists dot mulberrytech dot com
- Date: Thu, 01 Aug 2002 15:07:15 +0200
- Subject: Re: [xsl] processing-instruction()
- References: <3906C56A7BD1F54593344C05BD1374B1053EB6DD@SUS-MA1IT01>
- Reply-to: xsl-list at lists dot mulberrytech dot com
Bradford, Denis wrote:
A slight twist: how do you match on the value of a pi's attribute?
PIs don't have attributes, at least not in the XML spec.
It is just a string. You can use the usual string tokenization
methods to parse it and extract what you think of as "PI
attributes". Some parsers, notably Saxon, have an extension
function which does this for you (it's much easier and more
efficient).
J.Pietschmann
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list