Subject: RE: [xsl] checking sequence inside processing-instruction From: "Michael Kay" <mike@xxxxxxxxxxxx> Date: Wed, 13 Aug 2008 21:24:13 +0100 |
> My processing-instruction as follows: > > <?PAGEBREAK id="PAGE0001" number="i"?> > > I want to display the value in in the number attribute in the > HTML view > > My XSL is as follows: > > <xsl:template match="processing-instruction('PAGEBREAK')"> > <p><xsl:value-of select="saxon:get-pseudo-attribute('@number')"/></p> > </xsl:template> Replace "@number" by "number". > > this XSL is not generating any info related to number information. > even i tried with the @id then it is displaying the following message: > > Warning: on line 162 of file:/D:/ganesh-schemas/xml/gae.xsl: > The attribute axis starting at a processing-instruction > node will never select anything That sounds as if you wrote select="saxon:get-pseudo-attribute(@id)" without the quotes. Michael Kay http://www.saxonica.com/
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] checking sequence inside , Houghton,Andrew | Thread | [xsl] namespaces declarations treat, Andrew Welch |
RE: [xsl] Sorting, but then splitti, Michael Kay | Date | RE: [xsl] namespaces declarations t, Michael Kay |
Month |