RE: Accessing the XML declaration, the namespace-uri() funct
Indeed the XML Recommendation defines these productions, which specifically exclude putative PIs that begin with "xml": Processing Instructions  PI ::= '<?' PITarget (S (Char* - (Char* '?>' Char*)))? '?>'  PITarget ::= Name - (('X' | 'x') ('M' | 'm') ('L' | 'l')) -r > -----Original Message----- > From: owner-xsl-list@xxxxxxxxxxxxxxxx > [mailto:owner-xsl-list@xxxxxxxxxxxxxxxx]On Behalf Of Mike Brown > Sent: Friday, November 05, 1999 12:39 PM > To: 'xsl-list@xxxxxxxxxxxxxxxx' > Subject: RE: Accessing the XML declaration, the namespace-uri() function > > > > >Dylan Walsh wrote: > > The default XML viewer stylesheet > > uses <xsl:template match="pi('xml')> as I've mentioned in > > another post. Alas this isn't possible with up to date XSL. > > I missed the other post, but yeah, the XPath spec says: > "NOTE: The XML declaration is not a processing instruction. > Therefore, there is no processing instruction node > corresponding to the XML declaration." XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
PURCHASE STYLUS STUDIO ONLINE TODAY!
Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!
Download The World's Best XML IDE!
Accelerate XML development with our award-winning XML IDE - Download a free trial today!
Subscribe in XML format