Subject: Re: handling tags and PIs within a macro
From: Nancy Brandt <nancy_brndt@xxxxxxxxx>
Date: Wed, 24 Oct 2007 06:02:48 -0700 (PDT)
|
Hi, David!
Just wanna show you an example of a macro:
<informaltable frame="all">
<tgroup cols="1"><colspec colnum="1" colname="col1"
colwidth="*"/>
<tbody>
<j_entry>
<cm>admin/user/%/full_name</cm>
<dsc>Keeps the full name of the user. The default
value is only for the first user, a new user you add
will not have a default full name.</dsc>
<rel>General</rel>
<type>text[MAX_FULLNAME_LEN=128]</type>
<ver>2.0</ver>
<val>Administrator</val>
<fid>admin_user_fullname</fid>
</j_entry>
...
I see that the problem right now is when there is a
reference like <xref linkend="admin_user_fullname"
xrefstyle="template:%t on page %p"/>. In PDF, this
reference must show something like:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
...see entry "admin/user/%/full_name on page
14"
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
That is the contents of <cm>...<cm> in the entry I
showed here.
Please, advise how to solve this reference problem.
Thanks for your kind help!
Nancy
--- David Carlisle <davidc@xxxxxxxxx> wrote:
>
> > dsc encountered in formalpara, but no template
> > matches.
>
> that is fairly explict, you have applied templates
> to dsc elements but
> don't have a template for that.
>
> So either you need to have a template, something
> like
>
> <xsl:template match="dsc">
> <xsl:apply-templates/>
> </xsl:template>
>
> or, you need to apply templates to the children of
> dsc not to dsc itself
> so
>
> <xsl:apply-templates select="dsc/node()"/>
>
> not
>
>
> <xsl:apply-templates select="dsc"/>
>
>
> > Error(132/23277): fo:page-number-citation is
> missing
> > required "ref-id" property.
>
> That is a separate problem your stylesheet has
> generated a bad page
> reference in the FO file, either because there is a
> bug in the
> stylesheet (or more likely if this is the standard
> docbbok stylesheets)
> there is an error in your input document.
>
> > Oct 24, 2007 1:10:12 PM
> > org.apache.fop.hyphenation.Hyphenator
> > getHyphenationTree
> > SEVERE: Couldn't find hyphenation pattern en
>
> That is an error in your FOP setup, sorry I can't
> advise there I don't
> use FOP (or XSL-FO much at all) It's essentially a
> completely different
> program which is processing the output of your XSLT
> transform. Some
> others on this list may be able to help with that,
> or teh FOP specific
> list might be better.
>
> David
>
>
________________________________________________________________________
> The Numerical Algorithms Group Ltd is a company
> registered in England
> and Wales with company number 1249803. The
> registered office is:
> Wilkinson House, Jordan Hill Road, Oxford OX2 8DR,
> United Kingdom.
>
> This e-mail has been scanned for all viruses by
> Star. The service is
> powered by MessageLabs.
>
________________________________________________________________________
>
>
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
|