Hi Daniel,
Your first example works for me when I use xsltproc. Not clear why it doesn't for you.

Your second example actually fails when I try to process it with xsltproc. I get this error message:

   xsltParseTemplateContent: xslt:text content problem

That isn't surprising, since xsl:text is supposed to contain only text, not elements like <title>. I just wonder why you aren't getting that error message. If you convert <title> to &lt;title> and the same for the closing tag, then your code works for me. Or put it in a CDATA:

<xsl:text disable-output-escaping="yes">
&lt;asp:Content ID="cntHead" ContentPlaceHolderID="cphHeadContent" 
Runat="Server">
   <![CDATA[<title>Benefits of Flexible Part Feeding</title> ]]>
&lt;/asp:Content>
</xsl:text>

That works for me too.

Bob Stayton
Sagehill Enterprises
[email protected]


----- Original Message ----- From: "Merchant, Daniel" <[email protected]>
To: <[email protected]>
Sent: Tuesday, August 24, 2010 10:35 AM
Subject: [docbook-apps] Server Side Includes for ASP


I am trying to publish an ASP document. Most of it is working, but there are two parts (both variation of the same thing) that are giving me a hard time.

I need to put

<%@ Page language="VB" AutoEventWireup="false" MasterPageFile="~/FANUCRoboticsMasterPageMeta.master" Title="FLEXIBLE PART FEEDING"%>

in my document.  I have coded this as:

<xsl:text disable-output-escaping="yes">&lt;%@ Page language="VB" AutoEventWireup="false" MasterPageFile="~/FANUCRoboticsMasterPageMeta.master" Title="FLEXIBLE PART FEEDING"%></xsl:text>

in my customization.  When I look at my published documents, here is what I get.

&lt;%@ Page language="VB" AutoEventWireup="false" MasterPageFile="~/FANUCRoboticsMasterPageMeta.master" Title="FLEXIBLE PART FEEDING"%&gt;

My second problem is that I need to put

<asp:Content ID="cntHead" ContentPlaceHolderID="cphHeadContent" Runat="Server">
   <title>Benefits of Flexible Part Feeding</title>
</asp:Content>

in my document.  I have coded this as:

<xsl:text disable-output-escaping="yes">
&lt;asp:Content ID="cntHead" ContentPlaceHolderID="cphHeadContent" 
Runat="Server">
   <title>Benefits of Flexible Part Feeding</title>
&lt;/asp:Content>
</xsl:text>

Again, when I look look at my published documents, here is what I get.

&lt;asp:Content ID="cntHead" ContentPlaceHolderID="cphHeadContent" 
Runat="Server"&gt;
   <title>Benefits of Flexible Part Feeding</title>
&lt;/asp:Content&gt;

Any ideas as to what I am doing wrong?

I am using V1.74 DocBook style sheets and xsltproc. I am no more ideas left on how to turn &lt; and &gt; into < and >.

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]




---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to