This is the mail archive of the
mailing list for the DocBook project.
RE: [docbook] Generating JSPs from Docbook/XSLT
- From: "David Cramer (Tech Pubs)" <dcramer at motive dot com>
- To: "S. Alan Ezust" <sae at mcs dot suffolk dot edu>
- Cc: <docbook at lists dot oasis-open dot org>
- Date: Tue, 20 Apr 2004 17:47:29 -0500
- Subject: RE: [docbook] Generating JSPs from Docbook/XSLT
Oops, that trick works with Saxon, but apparently not with xsltproc, which I gather you're using. I can't say which is behaving correctly, but I should mention that using disable-output-escaping is considered ugly and fragile. I don't know if there's a non-ugly way to do what you need :)
<xsl:comment><%@ include file="/header.html" %></xsl:comment>
And post process away the <!-- and --> if necessary?
<!--<%@ include file="/header.html" %>-->
Sorry I can't be more help.
> -----Original Message-----
> From: S. Alan Ezust [mailto:email@example.com]
> Sent: Tuesday, April 20, 2004 4:34 PM
> To: David Cramer (Tech Pubs)
> Cc: firstname.lastname@example.org
> Subject: Re: [docbook] Generating JSPs from Docbook/XSLT
> I tried that with a very simple XSL file and it works like a charm!
> However, I put the same template rule in the Docbook XSL
> customization layer as user.header.content,
> and it seems to ignore the disable-output-spacing attribute
> of XSL:text, because the files generated by the
> XSL chunker have those characters escaped!! Any idea why that
> would be?
> On April 20, 2004 03:21 pm, David Cramer (Tech Pubs) wrote:
> > Try:
> > <xsl:template name="user.header.content">
> > <xsl:text disable-output-escaping="yes"><%@ include
> > %></xsl:text> </xsl:template>
> > David
> > > -----Original Message-----
> > > From: S. Alan Ezust [mailto:email@example.com]
> > > Sent: Tuesday, April 20, 2004 11:54 AM
> > > To: firstname.lastname@example.org
> > > Subject: [docbook] Generating JSPs from Docbook/XSLT
> > >
> > >
> > > So I went into the XSLT customization layer,
> > > and added a template that looks like this:
> > >
> > > <xsl:template name="user.header.content">
> > > <%@ include file="/header.html" %>
> > > </xsl:template>
> > >
> > > that didn't work... Wrong syntax.
> > > Tried putting it in between
> > > <xsl:text>
> > >
> > > tags but then it prints out the <> as literals.
> S. Alan Ezust
> Ottawa, Ontario, Canada
To unsubscribe from this list, send a post to email@example.com, or visit http://www.oasis-open.org/mlmanage/.