Re: Arial @ PDF-FOP

2014-05-31 Thread David Crossley
spintus-mail...@web.de wrote:
 Hello :) 
 
 I have been trying for hours to integrate Arial in FOP. However, no success.
 
 
  
 
 My Sitemap: 
 
 map:serialize logger=sitemap.serializer.fo2pdf
 mime-type=application/pdf type=fo2pdf
 src=org.apache.cocoon.serialization.FOPSerializer 
 
 user-configfile:///C:/fop-fonts/font-config.xml /user-config 
 
 /map: serialize 

That sitemap does not seem to be correct. First define the serializer
in a map:serializers ... map:serializer and that is where the
configuration file is declared. Then later at various locations
in your sitemaps, use that serializer via a map:serialize.

 And my font-config: 
 
 configuration 
 
fonts 
 
  font metrics-file =file:///C:/fop-fonts/arial.xml 
 
kerning = yes embed-file = file:///C :/fop-fonts/arial.ttf 
 
font-triplet name=Arial style=normal weight=normal/ 
 
font-triplet name=ArialMT style=normal weight=normal/ 
 
  / font 
 
 / fonts 
 
 / configuration 
 
  
 
 If there is a syntax error?

Perhaps that is an old style of configuration.

I only know how to use the configuratian via Apache Forrest,
which uses Cocoon-2.1 and hence currently FOP-1.0:
http://forrest.apache.org/docs/plugins/org.apache.forrest.plugin.output.pdf/
should provide some hints that might work for you in Cocoon proper.

Our docs point to FOP for more info:
http://xmlgraphics.apache.org/fop/1.0/configuration.html

-David

-
To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org
For additional commands, e-mail: users-h...@cocoon.apache.org



Re: AW: authentication @ cocoon

2014-05-31 Thread David Crossley
spintus-mail...@web.de wrote:
 Hello :) 
 I'll check it out once authentication framework. I still have the following 
 questions: 
 
 - What is the correct syntax for the disclosure of 'application / xml' @ 
 stream generator? 
 
 - Is it possible to validate an xml file via XSD? (entry in sitemap) 

Too may questions in one thread. Anyway i will try to help with this one.

There is the very useful Cocoon Validation Block.

However the Cocoon docs are broken. We have some notes at Apache Forrest
that will help:
http://forrest.apache.org/howto-dev.html#debug-validation
and it refers to Cocoon-2332
which also links to the Wayback Machine for the missing docs.

-David

 - Is there a good solution to the h1, h2, h3 hierarchy in HTML via XSL 
 represent? 
   h1 
  xsl:number count=@titel format=1. 
 level=multiple/ 
  xsl:value-of select=@titel/ 
 / h1 
 
 
 Best greetings
 
 -Ursprüngliche Nachricht-
 Von: Antonio Gallardo [mailto:agalla...@agssa.net] 
 Gesendet: Mittwoch, 28. Mai 2014 21:54
 An: users@cocoon.apache.org
 Betreff: Re: AW: authentication @ cocoon
 
 Hi Andreas,
 
 Did you try to use the authentication framework [1]?
 
 Best Regards,
 
 Antonio Gallardo.
 
 [1] http://cocoon.apache.org/2.1/developing/webapps/authentication.html
 
 On 28/05/14 13:31, spintus-mail...@web.de wrote:
  Good evening :)
  authentication is intended that not everyone can take advantage of the 
  service on the intranet - thinking of user accounts :).
 
  What is the correct syntax for the disclosure of 'application / xml'? 
 
  Best greetings
 
  -Ursprüngliche Nachricht-
  Von: Andreas Kuehne [mailto:kue...@trustable.de]
  Gesendet: Dienstag, 27. Mai 2014 21:57
  An: users@cocoon.apache.org
  Betreff: Re: authentication @ cocoon
 
  Hi,
  what kind of authentication do you think of?
 
  BasicAuth? Just get the header!
  SSL Client Auth? Get the client certificate!
  Web Service Security? I got a transformer at hand ...
 
  Greetings,
 
  Andreas
 
  PS: Use 'application/xml' encoding, otherwise the stream generator 
  assumes 'form-urlencoded' and expects a form.
  Good evening together,
  I currently use the stream generator for XML files via HTTP post to
  cocoon.
  Now I would like to introduce an authentication. 
 
  My current pipeline: 
   map:pipeline 
   map:match pattern=get 
   map:generate type=stream 
   map:parameter name=form-name value=file/ 
   / map: generate 
   map:transform src=convert.xsl / 
   map:serialize type=html/ 
   / map: match 
   / map: pipeline
 
  Is there an easy way to implement this? Furthermore, I ask myself 
  currently, for which the form-name is required? Via REST I can also 
  send data successfully without the form to specify?
 
  Greetings
 
 
  -
  To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org
  For additional commands, e-mail: users-h...@cocoon.apache.org
 
 
 
  --
  Andreas Kühne
  phone: +49 177 293 24 97
  mailto: kue...@trustable.de
 
  Trustable Ltd. Niederlassung Deutschland Ströverstr. 18 - 59427 Unna 
  Amtsgericht Hamm HRB 5868
 
  Directors Andreas Kühne, Heiko Veit
 
  Company UK Company No: 5218868 Registered in England and Wales
 
 
  -
  To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org
  For additional commands, e-mail: users-h...@cocoon.apache.org
 
 
 
  -
  To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org
  For additional commands, e-mail: users-h...@cocoon.apache.org
 
 
 
 -
 To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org
 For additional commands, e-mail: users-h...@cocoon.apache.org
 
 
 
 -
 To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org
 For additional commands, e-mail: users-h...@cocoon.apache.org
 

-
To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org
For additional commands, e-mail: users-h...@cocoon.apache.org