On 12/05/2012 12:32 AM, Siyuan Tian wrote:
Hi Jeff,
After sending out the previous message, I did a search in the user guide
and found something. So, I try to copy the /usr/share/publican/xsl/pdf.xsl
to my brand directory at the same level as the en-US sub-dir. Then, I tried
to build the pdf and got the following at the end of the output:
"Using XML::LibXSLT on ./Common_Content/cloudstack/xsl/pdf.xsl
Could not create file parser context for file
"./Common_Content/cloudstack/xsl/pdf.xsl": no such file or directory at
/usr/share/perl5/Publican/Builder.pm line 937"
I noticed in the user guide, "Brands that supply XSL files need to change
the relative path to a URI." But I don't understand what it means.
Thanks again,
Tian
On Tue, Dec 4, 2012 at 9:37 PM, Siyuan Tian<[email protected]> wrote:
Hi Jeff,
I solved the hyphenate problem by turnning it off
in /usr/share/publican/xsl/pdf.**xsl according to your instruction.
How can I override it in my brand? I double checked the user guide, which
does not mention this. Or where can I find more information on brand?
I tried again, 2.8 support "build formats=test". I might have made a
mistake.
Thanks for your kind help,
Sorry for the lag in replying. Here is the basic pdf.xsl file you'd need
to do this.
<?xml version='1.0'?>
<!DOCTYPE xsl:stylesheet>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version='1.0'
xmlns="http://www.w3.org/TR/xhtml1/transitional"
xmlns:fo="http://www.w3.org/1999/XSL/Format"
exclude-result-prefixes="#default">
<!-- Import the publican base PDF XSL file -->
<xsl:import href="../../../xsl/pdf.xsl"/>
<!-- override a parameter -->
<xsl:param name="hyphenate">false</xsl:param>
</xsl:stylesheet>
Cheers, Jeff.
--
Jeff Fearn <[email protected]>
Senior Software Engineer
Infrastructure Engineering & Development (AEU)
Red Hat Asia Pacific Pty Ltd
GPG: 0x0357E8F0
_______________________________________________
publican-list mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/publican-list
Wiki: https://fedorahosted.org/publican