xsl-list
[Top] [All Lists]

RE: [xsl] checking sequence inside processing-instruction

2008-08-13 13:25:09
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/


--~------------------------------------------------------------------
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>
--~--

<Prev in Thread] Current Thread [Next in Thread>