[xslt] xsltproc not copying pi's



I can't get xsltproc to copy processing instructions.  It seems to
match the template OK, but doing an <xsl:copy/> doesn't copy the pi to
the result.

I've enclosed a simple example.


--Brent

-------------------------------------------------------------------------

"The programmer, like the poet, works only slightly removed from pure
 thought-stuff.  He builds his castles in the air, from air, creating
 by exertion of the imagination.  Few media of creation are so
 flexible, so easy to polish and rework, so readily capable of
 realizing grand conceptual structures."
                        -- Frederick Brooks, Jr., The Mythical Man Month
<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="style.css"?>
<document>
	
</document>
<?xml version= "1.0" encoding="ISO-8859-1" standalone="yes"?>

<xsl:stylesheet version="1.0" 
  xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

  <xsl:template match="processing-instruction()">
	<xsl:copy/>
  </xsl:template>
  
</xsl:stylesheet>


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]