I do not receive XSL processing instructions!

In what scenarios can XSL processing instructions be used or applied? When is it good or bad to use them?

Clean the slate here, I do not have a good pen for this particular item.

Example from w3schools:

<xsl: processing instruction instruction name = "process name"> <! - Content: template → </ XSL: processing instruction>

+3
source share
3 answers

It is very simple: you would use <xsl:processing-instruction>it if you needed to output the processing instruction to your XML output. Unless you need a PI in your output, you do not need an instruction processing element.

, PI , , .

, <?xml-stylesheet> :

<!-- Link to the stylesheet for people who wander in. -->
<xsl:processing-instruction name='xml-stylesheet'>
        type="text/xsl"
        href="<xsl:value-of select='$stylesheet'/>"
        media="screen"
</xsl:processing-instruction>

:

<?xml-stylesheet type="text/xsl" href="http://nedbatchelder.com/rss.xslt" media="screen"?>
+6

, , XML - . PI . , XML, , .

+1

, <? php? > <? xml? > . , , , , , . XSLT .

0

All Articles