[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Re: [docbook-apps] refentryinfo is ignored?
You are right that refentryinfo elements are currently not processed at all by the DocBook stylesheets. I guess they were left as an exercise for the user. 8^) You were closer than you imagined to having it working, at least for chunking HTML. In the chunking stylesheet, the context node for the user.footer.content template is the current element being chunked, which might be a refentry. Since a refentryinfo element is a child of refentry, your test can just be to name the element: <xsl:if test="refentryinfo"> This means "if there is a refentryinfo child in the current context" ... Likewise for your other items, you can give an XPath down to the information. <p><xsl:value-of select="refentryinfo/title"/></p> You might want to also check for the existance of each element before you output a paragraph for it, though. The important point here is knowing what the current context is and how you can address elements below that context with XPath. Bob Stayton Sagehill Enterprises DocBook Consulting bobs@sagehill.net ----- Original Message ----- From: "Sam Steingold" <sds@gnu.org> To: <docbook-apps@lists.oasis-open.org> Sent: Sunday, May 16, 2004 7:14 PM Subject: [docbook-apps] refentryinfo is ignored? > refentry.xsl appears to discard refentryinfo. > I would like to output some of the refentryinfo contents. > > what I want is something like this: > > <xsl:template name="user.footer.content"> > <xsl:if test="refentryinfo is present in the current document"> > <div class="refentryinfo" > <p><xsl:value-of select="refentryinfo.title"/></p> > <p><xsl:value-of select="refentryinfo.subtitle"/></p> > <p><xsl:value-of select="refentryinfo.date"/></p> > </div> > </xsl:if> > </xsl:template> > > I am not sure how to formulate the test in xsl:if (I use the same > customization layer for refentry and book). > Also, I don't know how to access the refentryinfo sub-elements. > (title, date &c) > Could you please help me? > > Thanks! > > -- > Sam Steingold (http://www.podval.org/~sds) running w2k > <http://www.camera.org> <http://www.iris.org.il> <http://www.memri.org/> > <http://www.mideasttruth.com/> <http://www.honestreporting.com> > If it has syntax, it isn't user friendly. > > > To unsubscribe from this list, send a post to docbook-apps-unsubscribe@lists.oasis-open.org, or visit http://www.oasis-open.org/mlmanage/. > > >
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]