xsl:processing-instruction

only for RuBoard

xsl:processing-instruction

xsl:processing-instruction creates a processing instruction in the result tree.

Attributes

Attribute Name

Enforced

Description

Values

Name

Required

The name of the processing instruction

String ( pi-name )

Example

The following stylesheet suppresses the xml declaration and creates a processing instruction named my-ml with a version of 1.0. Note that the xsl:attribute element is not a valid child of the xsl:processing-instruction element. It is also not legal to name a processing instruction "xml" or "XML": manually creating the xml declaration requires output escaping a string or using the xsl:output element with a value of "no" for the omit-xml-declara tion attribute:

 <?xml version="1.0" encoding="UTF-8" ?>  <xsl:stylesheet version="1.0"  xmlns:xsl="http://www.w3.org/1999/XSL/Transform">       <xsl:output omit-xml-declaration="yes" />       <xsl:template match="/">            <xsl:processing-instruction name="my-ml">version="1.0"</ graphics/ccc.gif xsl:processing-instruction>       </xsl:template>  </xsl:stylesheet> 

Parent Elements

 xsl:attribute, xsl:comment, xsl:copy, xsl:element, xsl:for-each,  xsl:if, xsl:otherwise, xsl:param, xsl:processing-instruction,  xsl:template, xsl:variable, xsl:when, xsl:with-param, output elements 

Child Elements

 xsl:apply-templates, xsl:call-template, xsl:choose, xsl:copy, xsl:copy-of,  xsl:for-each, xsl:if, xsl:text, xsl:value-of, xsl:variable, output elements 
only for RuBoard


XML and ASP. NET
XML and ASP.NET
ISBN: B000H2MXOM
EAN: N/A
Year: 2005
Pages: 184

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net