Home >Java >javaTutorial >Why Does My XSLT Get an 'XML Processing Instruction Target Not Allowed' Error?

Why Does My XSLT Get an 'XML Processing Instruction Target Not Allowed' Error?

Patricia Arquette
Patricia ArquetteOriginal
2024-12-26 01:38:09808browse

Why Does My XSLT Get an

Error: XML Processing Instruction Target Not Allowed

You encounter this error when running an XSLT page that starts with the following code:

<?xml version="1.0" encoding="windows-1256"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
  <xsl:include href="../header.xsl"/>
  <xsl:template match="/">
    <xsl:call-template name="pstyle"/>
    <xsl:call-template name="Validation"/>
    <xsl:variable name="strLang">
      <xsl:value-of select="//lang"/>
    </xsl:variable>

The above is the detailed content of Why Does My XSLT Get an 'XML Processing Instruction Target Not Allowed' Error?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn