OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: Re: [docbook-apps] Re: xsl & unix functions


----- Original Message ----- 
From: "Sam Steingold" <sds@gnu.org>
To: <docbook-apps@lists.oasis-open.org>
Sent: Wednesday, August 31, 2005 3:14 PM
Subject: [docbook-apps] Re: xsl & unix functions


> > * Bob Stayton <obof@fntruvyy.arg> [2005-08-30 17:00:18 -0700]:
> >
> >> 3. <filename role="unix">sys/socket.h</filename>
> >>    I want it to be rendered as if it were written
> >>    <filename>&lt;sys/socket.h&gt;</filename>
> >>    (but I do not want to have to enter the &lt;/&gt; inside <filename>)
> >
> > Adding the &lt; and &gt; should not be a problem for the template if
> > you use xsl:text.
>
> I don't understand.
>
> here is what I have now:
>
> <xsl:template match="filename[@role='unix']">
>  <a class="{@role}" href="{$unix.top}basedefs/{translate(.,'/','')}.html"
>     >&lt;<xsl:apply-imports/>&gt;</a>
> </xsl:template>
>
> how do I wrap sys/socket.h with &lt; and &gt; _before_ the default
> template is applied?

You can't add content to a node and then use apply-imports on it.  You'll
have to copy one of the inline templates and customize it.

Bob Stayton
Sagehill Enterprises
DocBook Consulting
bobs@sagehill.net





[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]