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] Creating correct HTML links from IDs


That should work.  The error message is coming from the template named
'check.id.unique', and it indicates that the id value is not found in the xsl:key with
name="id".  That xsl:key in an index of the all the id values in the current document,
and it is loaded before the document is processed with formatting templates.  If the
id value is on an element in the document, it should be in that xsl:key.  From the
information you provided, I can't tell why that isn't the case.

Bob Stayton
Sagehill Enterprises
bobs@sagehill.net


----- Original Message ----- 
From: "honyk" <j.tosovsky@email.cz>
To: <docbook-apps@lists.oasis-open.org>
Sent: Tuesday, May 04, 2010 9:29 AM
Subject: [docbook-apps] Creating correct HTML links from IDs


> Hello Everyone,
>
> in my customization layer for chunked HTML output I need to create several
> "navigation" links. I can retrieve set of documents IDs together with their
> titles, but I don't know what is the best way to generate HTML links from
> this data. In PDF I can use IDs directly, but for chunked output I need also
> to determine the final HTML page file name...
>
> I've tried simple.xlink template:
> <xsl:call-template name="simple.xlink">
>  <xsl:with-param name="linkend" select="'myID'"/>
>  <xsl:with-param name="content" select="'myLink'"/>
> </xsl:call-template>
>
> what generates <a> element with the appropriate content, but the href
> element is empty. In the log I see the following:
> Error: no ID for constraint linkend: myID.
> (that ID is present there)
>
> Can I fix this somehow? Is there better template for this in DocBook
> distribution or should I write something by myself?
>
> Thanks for any tips.
>
> Regards,
> Jan
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org
> For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org
>
>
>



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