Re: [xsl] processing-instruction()

Subject: Re: [xsl] processing-instruction()
From: "J.Pietschmann" <j3322ptm@xxxxxxxx>
Date: Thu, 01 Aug 2002 15:07:15 +0200
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



Current Thread