[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Processing instructions not getting inserted?

Subject: Processing instructions not getting inserted?
From: russurquhart1@xxxxxxxxxxx
Date: Wed, 20 Jun 2012 14:41:30 -0500 (CDT)
 Processing instructions not getting inserted?
 Hi All,

I was trying to put in some processing instructions used by our CMS into some xml. The processing instructions are of a form for an Insertion mark tag:

<?xm-insertion_mark_start author="x0167021" time="20120618T161651-0600"?>
<?xm-insertion_mark_end?>


When i tried doing something like the following:

<xsl:template match="*[@filter='filter1']">
<?xm-insertion_mark_start author="x0167021" time="20120618T161651-0600"?>
 <xsl:copy-of select="."/>
<?xm-insertion_mark_end?>
 </xsl:template>

Or something like this:


<xsl:template match="*[@filter='filter1']">
<xsl:text><?xm-insertion_mark_start author="x0167021" time="20120618T161651-0600"?></xsl:text>
 <xsl:copy-of select="."/>
<xsl:text><?xm-insertion_mark_end?></xsl:text>
 </xsl:template>

I get the copy of the element, but NONE of the processing instruction text. 

Is the XSLT processor (I'm using Saxon) interpreting the processing instructions? Do i need to do something different to get this text to be inserted.

Thanks for any help!


Russ

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.