|
View:
New views
7 Messages
—
Rating Filter:
Alert me
|
|
|
Draft watermark not working. No specific customization.Hi,
I have a very basic customization - only to set the draft.mode to "yes" (see attached). Still I don't get watermark. I did see problems reported earlier on the subject, but most related to accessing the image. I don;t see any such error while creating PDF/ bare-FO output. Here is output from my command-line: :: :: DBG ::: .\fop-0.94\fop -d -c .\custom\fonts\font-spec.xml -xml .\projects\test\input\index.xml -xsl .\custom\tst-pd f.xsl -pdf .\projects\test\output\test.pdf :: SystemId Unknown; Line #18; Column #75; Prefix must resolve to a namespace: http Mar 8, 2008 5:48:02 PM org.apache.fop.cli.InputHandler warning WARNING: javax.xml.transform.TransformerException: Making portrait pages on USletter paper (8.5inx11in) Mar 8, 2008 5:48:03 PM org.apache.fop.hyphenation.Hyphenator getHyphenationTree SEVERE: Couldn't find hyphenation pattern en :: :: DBG ::: .\fop-0.94\fop -xml .\projects\test\input\index.xml -xsl .\custom\custom-fo.xsl -foout .\projects\test\outp ut\test.fo :: Mar 8, 2008 5:48:06 PM org.apache.fop.cli.InputHandler warning WARNING: javax.xml.transform.TransformerException: Making portrait pages on A4 paper (210mmx297mm) :: :: Done! :: I am using docbook-xsl 1.73.2 tst-pdf.xsl test.pdf index.xml ~spr |
|
|
Re: Draft watermark not working. No specific customization.On Sat, Mar 8, 2008 at 4:25 AM, spr <spremi@...> wrote:
> I have a very basic customization - only to set the draft.mode to "yes" > (see attached). ... <xsl:param name="draft.mode" select="yes"/> (xsl:param's are funny) I think you've set the draft.mode to the value of the XPath yes rather than the string value yes. Try either <xsl:param name="draft.mode" select="'yes'"/> or <xsl:param name="draft.mode">yes</xsl:param> HTH, Keith --------------------------------------------------------------------- To unsubscribe, e-mail: docbook-apps-unsubscribe@... For additional commands, e-mail: docbook-apps-help@... |
|
|
Re: Draft watermark not working. No specific customization.Thanks Keith,
Only this works: <xsl:param name="draft.mode">yes</xsl:param> But in my full customization projects, i have many params set as: <xsl:param name = "draft.mode" select = "yes" /> Infact, all stylesheets are formatted this way. Since, i am a 'C' programmer, this formatting helps me in easy understanding & modification. I am still curious why only this param (of the ones i have used) behaves differently. ~spr
~spr |
|
|
Re: Draft watermark not working. No specific customization.On Sat, Mar 08 2008 19:01:24 +0000, spremi@... wrote:
> Only this works: > <xsl:param name="draft.mode">yes</xsl:param> That is the format documented at http://docbook.sourceforge.net/release/xsl/current/doc/html/draft.mode.html Regards, Tony Graham. ====================================================================== Tony.Graham@... http://www.menteithconsulting.com Menteith Consulting Ltd Registered in Ireland - No. 428599 Registered Office: 13 Kelly's Bay Beach, Skerries, Co. Dublin, Ireland ---------------------------------------------------------------------- Menteith Consulting -- Understanding how markup works ====================================================================== --------------------------------------------------------------------- To unsubscribe, e-mail: docbook-apps-unsubscribe@... For additional commands, e-mail: docbook-apps-help@... |
|
|
Re: Draft watermark not working. No specific customization.Hi,
> <xsl:param > name = "draft.mode" > select = "yes" /> This style will work with the proper syntax in the select expression. A bare word in a select expression is taken as an element name. Since there is no <yes> element in that context, the expression returns nothing and the parameter is not set. The stylesheet expects a string for that parameter, which is why Keith suggested adding the single quotes inside the double quotes, which indicates that the value is a string: <xsl:param name = "draft.mode" select = "'yes'" /> But such combined quotes are not always clear in many fonts. Forgetting the quotes on string values is one of the most common errors in XSLT, which is why the syntax <xsl:param name="draft.mode">yes</xsl:param> is often preferred (but not required). Bob Stayton Sagehill Enterprises bobs@... ----- Original Message ----- From: "spr" <spremi@...> To: <docbook-apps@...> Sent: Saturday, March 08, 2008 12:01 PM Subject: Re: [docbook-apps] Draft watermark not working. No specific customization. > > Thanks Keith, > > Only this works: > <xsl:param name="draft.mode">yes</xsl:param> > > But in my full customization projects, i have many params set as: > <xsl:param > name = "draft.mode" > select = "yes" /> > > Infact, all stylesheets are formatted this way. > Since, i am a 'C' programmer, this formatting helps me in easy > understanding > & modification. > > I am still curious why only this param (of the ones i have used) behaves > differently. > > ~spr > > > Keith Fahlgren-3 wrote: >> >> On Sat, Mar 8, 2008 at 4:25 AM, spr <spremi@...> wrote: >>> I have a very basic customization - only to set the draft.mode to "yes" >>> (see attached). >> ... >> <xsl:param name="draft.mode" select="yes"/> >> >> >> (xsl:param's are funny) I think you've set the draft.mode to the value >> of the XPath yes rather than the string value yes. Try either >> >> <xsl:param name="draft.mode" select="'yes'"/> >> >> or >> >> <xsl:param name="draft.mode">yes</xsl:param> >> >> >> HTH, >> Keith >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: docbook-apps-unsubscribe@... >> For additional commands, e-mail: docbook-apps-help@... >> >> >> > > > ----- > ~spr > -- > View this message in context: > http://www.nabble.com/Draft-watermark-not-working.-No-specific-customization.-tp15912867p15918932.html > Sent from the docbook apps mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: docbook-apps-unsubscribe@... > For additional commands, e-mail: docbook-apps-help@... > > > --------------------------------------------------------------------- To unsubscribe, e-mail: docbook-apps-unsubscribe@... For additional commands, e-mail: docbook-apps-help@... |
|
|
Re: Draft watermark not working. No specific customization./ "Keith Fahlgren" <abdelazer@...> was heard to say:
| On Sat, Mar 8, 2008 at 4:25 AM, spr <spremi@...> wrote: |> I have a very basic customization - only to set the draft.mode to "yes" |> (see attached). | ... | <xsl:param name="draft.mode" select="yes"/> Almost all of the "boolean" parameters in the XSLT stylesheets use "0" and "1" for false and true, respectively. As bob explained later in the thread, select="yes" matches <yes> elements in no namespace and, in DocBook at least, there aren't any. How $draft.mode slipped through expecting the values 'no' or 'yes' is beyond me. Bleh. Probably ought to fix that. Be seeing you, norm -- Norman Walsh <ndw@...> | It is as bad as you think. And http://www.oasis-open.org/docbook/ | they are out to get you. Chair, DocBook Technical Committee | |
|
|
Re: Re: Draft watermark not working. No specific customization.Hi Norm,
No fix is needed, as draft.mode is not a boolean parameter. It has three possible text values (yes, no, maybe), and has since at least 2002. The param is correctly documented in: http://docbook.sourceforge.net/release/xsl/current/doc/fo/draft.mode.html Bob Stayton Sagehill Enterprises bobs@... ----- Original Message ----- From: "Norman Walsh" <ndw@...> To: <docbook-apps@...> Sent: Wednesday, March 12, 2008 5:04 AM Subject: [docbook-apps] Re: Draft watermark not working. No specific customization. / "Keith Fahlgren" <abdelazer@...> was heard to say: | On Sat, Mar 8, 2008 at 4:25 AM, spr <spremi@...> wrote: |> I have a very basic customization - only to set the draft.mode to "yes" |> (see attached). | ... | <xsl:param name="draft.mode" select="yes"/> Almost all of the "boolean" parameters in the XSLT stylesheets use "0" and "1" for false and true, respectively. As bob explained later in the thread, select="yes" matches <yes> elements in no namespace and, in DocBook at least, there aren't any. How $draft.mode slipped through expecting the values 'no' or 'yes' is beyond me. Bleh. Probably ought to fix that. --------------------------------------------------------------------- To unsubscribe, e-mail: docbook-apps-unsubscribe@... For additional commands, e-mail: docbook-apps-help@... |
| Free embeddable forum powered by Nabble | Forum Help |