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] pdf mailto links


Oops...left out a line, make that:
 
  <xsl:if test="count(child::node()) != 0
                and string(.) != @url
                and $ulink.show != 0"
                and not(normalize-space(@role) = 'hideURL')">
 
And then put the following in your document:

<ulink role="hideURL" url="mailto:usr@mymail.org?Subject=book">Feedback</ulink>
-----Original Message-----
From: David Cramer (Tech Pubs)
Sent: Wednesday, February 25, 2004 2:08 PM
To: Geoffrey; _MailingList docbook-apps
Subject: RE: [docbook-apps] pdf mailto links

I don't think the xsls support anything like that out of the box. You'd have to hack the ulink template in fo/xref.xsl to get it to do what you want. If I understand what you want to do correctly, something like this should work:
 
In fo/ulink.xsl, change:
 
  <xsl:if test="count(child::node()) != 0
                and string(.) != @url
                and $ulink.show != 0">
To:
 
  <xsl:if test="count(child::node()) != 0
                and string(.) != @url
                and $ulink.show != 0"
                and not(normalize-space(@role) = 'hideURL')">  
<ulink role="hideURL" url="mailto:usr@mymail.org?Subject=book">Feedback</ulink>
 
That would result in Feedback being hot, but no indication of what the link is to.
 
Instead you could have the xsl test for "mailto:" in the url--whatever suits you.
 
For a complete guide on creating and maintaining a customization layer, see http://www.sagehill.net/docbookxsl/index.html
 


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