Questions tagged [processing-instruction]

A processing instruction is a construct in a markup language with unique delimiters. It may trigger special processing such as the inclusion of a file, the execution of a script, or the application of a stylesheet.

A processing instruction is a construct in a markup language with unique delimiters. It may trigger special processing such as the inclusion of a file, the execution of a script, or the application of a stylesheet.

In XML, the start and end delimiters are <? and ?>.

Example: <?xml-stylesheet type="text/xsl" href="style.xsl"?>

66 questions
17
votes
3 answers

Embedding XML (with XML declaration) in HTML or other XML

I have the error : Error Parsing /WEB-INF/includes/VerDatosProyeccion.xhtml: Error Traced[line: 4302] The processing instruction target matching "[xX][mM][lL]" is not allowed. I am using the code of same code of :…
user5344710
10
votes
2 answers

How to match the processing-instruction element in XSLT?

I have some processing-instructions elements inside my xml content, for example : Content para body content…
Antony
  • 107
  • 1
  • 2
  • 8
7
votes
1 answer

How to add XML processing instructions during JAXB marshal

I would like to add a processing instruction whenever a collection/array property is serialized to get something like edgar david Is this possible with JAXB? Or at least with some…
chris
  • 3,573
  • 22
  • 20
7
votes
3 answers

How to read processing instruction from an XML file using .NET 3.5

How to check whether an Xml file have processing Instruction Example I need to read the processing instruction
Thorin Oakenshield
  • 14,232
  • 33
  • 106
  • 146
7
votes
2 answers

How to keep processing instructions of xml file in SDL Tridion?

I am trying to add a processing instructions to my xml file in the source view of component xml. For example: ... After…
charles
  • 365
  • 3
  • 11
4
votes
1 answer

Access the processing-instructions before/after a root element with lxml

Using lxml, how can I access/iterate the processing-instructions located before the root open tag or after the root close tag? I have try this, but, according to the documentation, it only iterates inside the root element: import io from lxml…
Laurent LAPORTE
  • 21,958
  • 6
  • 58
  • 103
4
votes
3 answers

How to add an xml-stylesheet processing instruction node with Python 2.6 and minidom?

I'm creating an XML document using minidom - how do I ensure my resultant XML document contains a stylesheet reference like this: Thanks !
monojohnny
  • 5,894
  • 16
  • 59
  • 83
4
votes
1 answer

Handling similar to ?

During investigation of advantages and disadvantages of attaching CSS with processing instruction, I came upon some issues. Suppose we have a simple XHTML document (which is delivered with application/xhtml+xml MIME type and viewed…
user6423602
4
votes
2 answers

SQL Server FOR XML PATH: Set xml-declaration or processing instruction "xml-stylesheet" on top

I want to set a processing instruction to include a stylesheet on top of an XML: The same issue was with the xml-declaration (e.g. ) Desired result:
Shnugo
  • 66,100
  • 9
  • 53
  • 114
3
votes
3 answers

Processing instruction validation in XML schema

Reasonably simple one I suppose, I just can't find anything definitive (besides the fact that there is a lack of anything definitive) Is there any way to incorporate into a schema, the requirement of a processing instruction node at a place in the…
Dan Lugg
  • 20,192
  • 19
  • 110
  • 174
3
votes
2 answers

Prepend or append PI before / after the root element with lxml

With lxml, how can I prepend processing instructions before the root element or append PIs after de root element with lxml. Currently, the following example doesn't work: from lxml import etree root =…
Laurent LAPORTE
  • 21,958
  • 6
  • 58
  • 103
3
votes
4 answers

How to make a browser recognize a custom user-defined tag?

I am trying to develop a plugin/extension for a browser (Firefox or IE or Chrome). The purpose of this is that the plugin/extension should recognize one of my own-custom tags. Eg: ...
3
votes
1 answer

Finding and converting XML processing instructions using Python

We are converting our ancient FrameMaker docs to XML. My job is to convert this: ` to this: foo, bar I'm not worried about that part (yet); what is stumping me is that…
3
votes
2 answers

Parse processing instructions in XSLT

I have following XML. <?SAE page="ii"?> <p><bold>Other SAE books of interest:</bold></p> <p><bold>Electric and Hybrid-Electric Vehicles</bold></p> …</div> <div class="grid ai-start jc-space-between fw-wrap"> <div class="grid gs4 fw-wrap tags "> <a href="../../questions/tagged/c#" class="post-tag grid--cell" title="show questions tagged 'c#'" rel="tag">c#</a> <a href="../../questions/tagged/xml" class="post-tag grid--cell" title="show questions tagged 'xml'" rel="tag">xml</a> <a href="../../questions/tagged/xslt" class="post-tag grid--cell" title="show questions tagged 'xslt'" rel="tag">xslt</a> <a href="../../questions/tagged/processing-instruction" class="post-tag grid--cell" title="show questions tagged 'processing-instruction'" rel="tag">processing-instruction</a> </div> <div class="started mt0"> <div class="s-user-card s-user-card"> <time class="s-user-card--time" datetime="asked Feb 13 '14 at 05:27">asked Feb 13 '14 at 05:27</time> <a href="../../users/3090406/user" class="s-avatar s-avatar__32 s-user-card--avatar"> <img class="s-avatar--image" src="../../users/profiles/3090406.webp" data-jdenticon-width="32" data-jdenticon-height="32" data-jdenticon-value="user" /> </a> <div class="s-user-card--info"> <a href="../../users/3090406/user" class="s-user-card--link">user</a> <ul class="s-user-card--awards"> <li class="s-user-card--rep" title="reputation score">128</li> <li class="s-award-bling s-award-bling__silver" title="2 silver badges">2</li> <li class="s-award-bling s-award-bling__bronze" title="12 bronze badges">12</li> </ul> </div> </div> </div> </div> </div> </div> </div> <div class="mln24"> <div class="question-summary" id="question-summary-1792707"> <div class="statscontainer"> <div class="stats"> <div class="vote"> <div class="votes"> <span class="vote-count-post"><strong>3</strong></span> <div class="viewcount">votes</div> </div> </div> <div class="status "> <strong>3</strong> answers </div> </div> </div> <div class="summary"> <h3><a href="../../questions/1792707/is-there-any-way-to-call-xslt-templates-inline" class="question-hyperlink">Is there any way to call XSLT templates inline</a></h3> <div class="excerpt">How to call XSLT templates inline? For instance, instead of : <xsl:call-template name="myTemplate" > <xsl:with-param name="param1" select="'val'" /> </xsl:call-template> Can I use XSLT built-in function-call style, like this: <xls:value-of…</div> <div class="grid ai-start jc-space-between fw-wrap"> <div class="grid gs4 fw-wrap tags "> <a href="../../questions/tagged/design-patterns" class="post-tag grid--cell" title="show questions tagged 'design-patterns'" rel="tag">design-patterns</a> <a href="../../questions/tagged/xslt" class="post-tag grid--cell" title="show questions tagged 'xslt'" rel="tag">xslt</a> <a href="../../questions/tagged/anonymous-function" class="post-tag grid--cell" title="show questions tagged 'anonymous-function'" rel="tag">anonymous-function</a> <a href="../../questions/tagged/processing-instruction" class="post-tag grid--cell" title="show questions tagged 'processing-instruction'" rel="tag">processing-instruction</a> </div> <div class="started mt0"> <div class="s-user-card s-user-card"> <time class="s-user-card--time" datetime="asked Nov 24 '09 at 20:27">asked Nov 24 '09 at 20:27</time> <a href="../../users/171950/muhammad-hewedy" class="s-avatar s-avatar__32 s-user-card--avatar"> <img class="s-avatar--image" src="../../users/profiles/171950.webp" data-jdenticon-width="32" data-jdenticon-height="32" data-jdenticon-value="Muhammad Hewedy" /> </a> <div class="s-user-card--info"> <a href="../../users/171950/muhammad-hewedy" class="s-user-card--link">Muhammad Hewedy</a> <ul class="s-user-card--awards"> <li class="s-user-card--rep" title="reputation score">29,102</li> <li class="s-award-bling s-award-bling__gold" title="44 gold badges">44</li> <li class="s-award-bling s-award-bling__silver" title="127 silver badges">127</li> <li class="s-award-bling s-award-bling__bronze" title="219 bronze badges">219</li> </ul> </div> </div> </div> </div> </div> </div> </div> <div class="s-pagination pager fr"> <div class="s-pagination--item is-selected">1</div> <a class="s-pagination--item" href="../../questions/tagged/processing-instruction_page=2" rel="" title="Go to page 2">2</a> <a class="s-pagination--item" href="../../questions/tagged/processing-instruction_page=3" rel="" title="Go to page 3">3</a> <a class="s-pagination--item" href="../../questions/tagged/processing-instruction_page=4" rel="" title="Go to page 4">4</a> <a class="s-pagination--item" href="../../questions/tagged/processing-instruction_page=5" rel="" title="Go to page 5">5</a> <a class="s-pagination--item" href="../../questions/tagged/processing-instruction_page=2" rel="next" title="Go to page 2"> Next</a> </div> </div> </div> </div> </div> <script src="../../static/js/stack-icons.js"></script> <script src="../../static/js/fromnow.js"></script> </body> </html>