This gets even more interesting. According to Daniel Velliard, the original
XSLT Recommendation was not clear on this matter. The later Errata
document[1] (item E2) makes it explicit that the copy of the node should
also have those characters escaped, so this will likely be fixed in some
future version of xsltproc.
[1] http://www.w3.org/1999/11/REC-xslt-19991116-errata/
Bob Stayton
Sagehill Enterprises
DocBook Consulting
----- Original Message -----
From: "Bob Stayton" <>
To: "S. Alan Ezust" <>; "David Cramer (Tech Pubs)"
<>
Cc: <>
Sent: Wednesday, April 21, 2004 11:03 AM
Subject: Re: [docbook] Generating JSPs from Docbook/XSLT
> I think this is a bug in xsltproc. Your customization works with the
stock
> html/docbook.xsl, but not with chunk.xsl. I think the difference is that
in
> chunking, the write.chunk template assembles the content into a variable
and
> then uses xsl:copy-of to copy that content to the output document.
>
> According to Michael Kay's XSLT Programmer's Reference under xsl:copy-of,
it
> says "If the tree being copied includes text that was written with the
> disable-output-escaping="yes" directive, then this directive is copied to
> the new tree along with the text it applies to, and will take effect if
and
> when that tree is finally serialized."
>
> I just did a short test outside of DocBook to confirm it. I'll file a bug
> report against xsltproc.
>
> Bob Stayton
> Sagehill Enterprises
> DocBook Consulting
>
>
>
> ----- Original Message -----
> From: "S. Alan Ezust" <>
> To: "David Cramer (Tech Pubs)" <>
> Cc: <>
> Sent: Tuesday, April 20, 2004 2:33 PM
> 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
> file="/header.html"
> > > %></xsl:text> </xsl:template>
> > >
> > >
>
http://www.zvon.org/xxl/XSLTreference/W3C/xslt.html#disable-output-escaping
> > >
> > > David
> > >
> > > > -----Original Message-----
> > > > From: S. Alan Ezust [mailto:]
> > > > Sent: Tuesday, April 20, 2004 11:54 AM
> > > > To:
> > > > 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
> > http://cartan.cas.suffolk.edu/~sae
> >
> > To unsubscribe from this list, send a post to
> , or visit
> http://www.oasis-open.org/mlmanage/.
> >
> >
> >
>