List Info

Thread: Using a processing instruction to indicate customization URL




Using a processing instruction to indicate customization URL
user name
2006-09-29 20:15:12

Hi,

 

I am new to DocBook and XSLT.  I am using DocBook with DocBook XSL 1.69.1.

 

I want to use a processing instruction in my DocBook XML to indicate the location of my customization.xsl file. I was hoping it would look something like:

 

<?xml version=&quot;1.0&quot;?>
&lt;?MyInstruction CustomizationLayer=&quot; customization.xsl&quot; ?>
<;book>&nbsp; &nbsp;

   .

 &nbsp; .

 &nbsp; .

</book&gt;

 

I would then write a template to capture the value such as:

 

<xsl:template match="processing-instruction(&#8216;MyInstructionR17;)"&gt;
   “do something here”;
</xsl:template&gt;

 

However, I am unable to capture “MyInstruction&#8221; at all. It does work if I put the processing instruction in the “<;chapter>;” element, but this would be inappropriate.

 

Can someone tell me the proper way to handle this?

 

Jerry J

Satuit Systems

 

 

 

[1]

about | contact  Other archives ( Real Estate discussion Medical topics )