xsl-list
[Top] [All Lists]

Re: [xsl] Matching processing-instructions

2012-10-08 01:17:13
OK, good to know.  Thanks, and thanks for the link.
Karl..

On Sun, Oct 7, 2012 at 11:11 PM, Glatza, Philipp, le-tex
<philipp(_dot_)glatza(_at_)le-tex(_dot_)de> wrote:
Hi Karl,

no, <xsl:apply-templates/> does not hit PIs. You have to use
processing-instruction() or node() (also hits element, text, PI and comment
nodes).

Philipp

PS: See also section 5.8 in http://www.w3.org/TR/xslt:
"The built-in template rule for processing instructions and comments is to
do nothing."


Am 08.10.2012 08:06, schrieb Karl Stubsjoen:

Is an <xsl:apply-templates/> going to hit on child processing
instructions matches, or do I need to specifically select them like:
<xsl:apply-templates select="processing-instructions()"/>

<xsl:template match="processing-instrunction()">
.. do something ..
</xsl:template>

Karl..

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


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




-- 
Karl Stubsjoen
MeetScoresOnline.com
(602) 845-0006

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