fop with lenya: how can I suppress the lenya:meta in a created pdf

2005-03-16 Thread Sascha Teifke
I am using fop with apache lenya to create pdf files.
I'm using a simple xsl-file for transforming the created
lenya xml files into pdf files:
?xml version=1.0 encoding=iso-8859-1?
xsl:stylesheet
   xmlns:xsl=http://www.w3.org/1999/XSL/Transform; version=1.0
   xmlns:fo=http://www.w3.org/1999/XSL/Format;

   !-- generate PDF page structure --
   xsl:template match=/
   fo:root xmlns:fo=http://www.w3.org/1999/XSL/Format;
   fo:layout-master-set
   fo:simple-page-master master-name=page
 page-height=29.7cm
 page-width=21cm
 margin-top=1cm
 margin-bottom=2cm
 margin-left=2.5cm
 margin-right=2.5cm
   
   fo:region-before extent=3cm/
   fo:region-body margin-top=3cm/
   fo:region-after extent=1.5cm/
   /fo:simple-page-master
   fo:page-sequence-master master-name=all
   fo:repeatable-page-master-alternatives
   fo:conditional-page-master-reference
  master-reference=page page-position=first/
   /fo:repeatable-page-master-alternatives
   /fo:page-sequence-master
   /fo:layout-master-set
   fo:page-sequence master-reference=all
   fo:flow flow-name=xsl-region-body
   fo:blockxsl:apply-templates//fo:block
   /fo:flow
   /fo:page-sequence
   /fo:root
   /xsl:template
   !-- process paragraphs --
   xsl:template match=p
   fo:blockxsl:apply-templates//fo:block
   /xsl:template
   xsl:template match=meta
   fo:block color=green
   xsl:apply-templates/
   /fo:block
   /xsl:template
   !-- convert sections to XSL-FO headings --
   xsl:template match=s1
   fo:block font-size=24pt color=red font-weight=bold
   xsl:apply-templates select=@title/
   /fo:block
   xsl:apply-templates/
   /xsl:template
/xsl:stylesheet
But ... how can I make the lenya:meta tags in the xml file not to be 
shown in the
created pdf file???

Thank you in advance!
Sascha
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: fop with lenya: how can I suppress the lenya:meta in a created pdf

2005-03-16 Thread Glen Mazza
Remove the template below from your XSLT, and that
should work.

  xsl:template match=meta
fo:block color=green
xsl:apply-templates/
/fo:block
  /xsl:template

Glen


--- Sascha Teifke [EMAIL PROTECTED] wrote:
 I am using fop with apache lenya to create pdf
 files.
 I'm using a simple xsl-file for transforming the
 created
 lenya xml files into pdf files:
 
 ?xml version=1.0 encoding=iso-8859-1?
 xsl:stylesheet
 xmlns:xsl=http://www.w3.org/1999/XSL/Transform;
 version=1.0
 xmlns:fo=http://www.w3.org/1999/XSL/Format;
  
 !-- generate PDF page structure --
 xsl:template match=/
 fo:root
 xmlns:fo=http://www.w3.org/1999/XSL/Format;
 fo:layout-master-set
 fo:simple-page-master
 master-name=page
   page-height=29.7cm
   page-width=21cm
   margin-top=1cm
   margin-bottom=2cm
   margin-left=2.5cm
   margin-right=2.5cm
 
 fo:region-before extent=3cm/
 fo:region-body
 margin-top=3cm/
 fo:region-after
 extent=1.5cm/
 /fo:simple-page-master
 
 fo:page-sequence-master
 master-name=all

 fo:repeatable-page-master-alternatives

 fo:conditional-page-master-reference
master-reference=page
 page-position=first/

 /fo:repeatable-page-master-alternatives
 /fo:page-sequence-master
 /fo:layout-master-set
 
 fo:page-sequence
 master-reference=all
 fo:flow
 flow-name=xsl-region-body

 fo:blockxsl:apply-templates//fo:block
 /fo:flow
 /fo:page-sequence
 /fo:root
 /xsl:template
 
 !-- process paragraphs --
 xsl:template match=p
 fo:blockxsl:apply-templates//fo:block
 /xsl:template
 
 xsl:template match=meta
 fo:block color=green
 xsl:apply-templates/
 /fo:block
 /xsl:template
 
 !-- convert sections to XSL-FO headings --
 xsl:template match=s1
 fo:block font-size=24pt color=red
 font-weight=bold
 xsl:apply-templates select=@title/
 /fo:block
 xsl:apply-templates/
 /xsl:template
 
 /xsl:stylesheet
 
 But ... how can I make the lenya:meta tags in the
 xml file not to be 
 shown in the
 created pdf file???
 
 Thank you in advance!
 
 Sascha
 

-
 To unsubscribe, e-mail:
 [EMAIL PROTECTED]
 For additional commands, e-mail:
 [EMAIL PROTECTED]
 
 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: fop with lenya: how can I suppress the lenya:meta in a created pdf

2005-03-16 Thread Michael Wechner
Sascha Teifke wrote:
I am using fop with apache lenya to create pdf files.
I'm using a simple xsl-file for transforming the created
lenya xml files into pdf files:
?xml version=1.0 encoding=iso-8859-1?
xsl:stylesheet
   xmlns:xsl=http://www.w3.org/1999/XSL/Transform; version=1.0
   xmlns:fo=http://www.w3.org/1999/XSL/Format;

   !-- generate PDF page structure --
   xsl:template match=/
   fo:root xmlns:fo=http://www.w3.org/1999/XSL/Format;
   fo:layout-master-set
   fo:simple-page-master master-name=page
 page-height=29.7cm
 page-width=21cm
 margin-top=1cm
 margin-bottom=2cm
 margin-left=2.5cm
 margin-right=2.5cm
   
   fo:region-before extent=3cm/
   fo:region-body margin-top=3cm/
   fo:region-after extent=1.5cm/
   /fo:simple-page-master
   fo:page-sequence-master master-name=all
   fo:repeatable-page-master-alternatives
   fo:conditional-page-master-reference
  master-reference=page page-position=first/
   /fo:repeatable-page-master-alternatives
   /fo:page-sequence-master
   /fo:layout-master-set
   fo:page-sequence master-reference=all
   fo:flow flow-name=xsl-region-body
   fo:blockxsl:apply-templates//fo:block

xsl:apply-templates select=/html/*[local-name() != 'meta']/
HTH
Michi


--
Michael Wechner
Wyona Inc.  -   Open Source Content Management   -   Apache Lenya
http://www.wyona.com  http://lenya.apache.org
[EMAIL PROTECTED][EMAIL PROTECTED]
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: fop with lenya: how can I suppress the lenya:meta in a created pdf

2005-03-16 Thread Glen Mazza
I'm not sure--but you have an XSLT question, not a FOP
one--and I think the Mulberry XSLT mailing list
(Google for it) would be best for you.

Glen

--- Sascha Teifke [EMAIL PROTECTED] wrote:

 Hi Glen,
 
 thank you for the quick response.
 
 I removed it. But it still doesn't work.
 
 Her is an example xml file created by lenya.
 
 ?xml version=1.0 encoding=UTF-8?html 
 xmlns=http://www.w3.org/1999/xhtml; 
 xmlns:dc=http://purl.org/dc/elements/1.1/; 
 xmlns:dcterms=http://purl.org/dc/terms/; 

xmlns:lenya=http://apache.org/cocoon/lenya/page-envelope/1.0;
 
 xmlns:xhtml=http://www.w3.org/1999/xhtml; 
 dc:dummy=FIXME:keepNamespace
 dcterms:dummy=FIXME:keepNamespace 
 lenya:dummy=FIXME:keepNamespace
 xhtml:dummy=FIXME:keepNamespace
 lenya:meta
 dc:titledctitle/dc:title
 dc:creatorSascha Teifke/dc:creator
 dc:subjectdcsubject/dc:subject
 dc:descriptionAbstract that can be used on
 an overview 
 page/dc:description
 dc:publisher/
 dc:contributor/
 dc:dateSun Mar 06 16:40:36 CET
 2005/dc:date
 dc:type/
 dc:format/
 dc:identifier/
 dc:source/
 dc:languagede/dc:language
 dc:relation/
 dc:coverage/
 dc:rightsdcrights/dc:rights
 /lenya:meta
   head
 titleDefault Publication/title
   /head
   body
 h1Grundlagen/h1
 pIn dieser Rubrik erfahren Sie einiges über
 die a 

href=/mediengestaltung/authoring/basics/history_de.html
 
 title=Historie /ades PDF-Formates, sowie a 

href=/mediengestaltung/authoring/basics/application_de.html
 
 title=Einsatzgebiete/a und die a 

href=/mediengestaltung/authoring/basics/software_de.html
 
 title=Software/a, die man zur Erstellung
 benötigt./p/body
 /html
 
 Glen Mazza wrote:
 
 Remove the template below from your XSLT, and that
 should work.
 
   xsl:template match=meta
 fo:block color=green
 xsl:apply-templates/
 /fo:block
   /xsl:template
 
 Glen
 
 
 --- Sascha Teifke [EMAIL PROTECTED] wrote:
   
 
 I am using fop with apache lenya to create pdf
 files.
 I'm using a simple xsl-file for transforming the
 created
 lenya xml files into pdf files:
 
 ?xml version=1.0 encoding=iso-8859-1?
 xsl:stylesheet

 xmlns:xsl=http://www.w3.org/1999/XSL/Transform;
 version=1.0
 xmlns:fo=http://www.w3.org/1999/XSL/Format;
  
 !-- generate PDF page structure --
 xsl:template match=/
 fo:root
 xmlns:fo=http://www.w3.org/1999/XSL/Format;
 fo:layout-master-set
 fo:simple-page-master
 master-name=page
   page-height=29.7cm
   page-width=21cm
   margin-top=1cm
   margin-bottom=2cm
   margin-left=2.5cm
   margin-right=2.5cm
 
 fo:region-before
 extent=3cm/
 fo:region-body
 margin-top=3cm/
 fo:region-after
 extent=1.5cm/
 /fo:simple-page-master
 
 fo:page-sequence-master
 master-name=all

 fo:repeatable-page-master-alternatives

 fo:conditional-page-master-reference
master-reference=page
 page-position=first/

 /fo:repeatable-page-master-alternatives
 /fo:page-sequence-master
 /fo:layout-master-set
 
 fo:page-sequence
 master-reference=all
 fo:flow
 flow-name=xsl-region-body

 fo:blockxsl:apply-templates//fo:block
 /fo:flow
 /fo:page-sequence
 /fo:root
 /xsl:template
 
 !-- process paragraphs --
 xsl:template match=p

 fo:blockxsl:apply-templates//fo:block
 /xsl:template
 
 xsl:template match=meta
 fo:block color=green
 xsl:apply-templates/
 /fo:block
 /xsl:template
 
 !-- convert sections to XSL-FO headings --
 xsl:template match=s1
 fo:block font-size=24pt color=red
 font-weight=bold
 xsl:apply-templates select=@title/
 /fo:block
 xsl:apply-templates/
 /xsl:template
 
 /xsl:stylesheet
 
 But ... how can I make the lenya:meta tags in
 the
 xml file not to be 
 shown in the
 created pdf file???
 
 Thank you in advance!
 
 Sascha
 
 
 
 

-
   
 
 To unsubscribe, e-mail:
 [EMAIL PROTECTED]
 For additional commands, e-mail:
 [EMAIL PROTECTED]
 
 
 
 
 

-
 To unsubscribe, e-mail:
 [EMAIL PROTECTED]
 For additional commands, e-mail:
 [EMAIL PROTECTED]
 
 
   
 
 
 

-
 To unsubscribe, e-mail:
 [EMAIL PROTECTED]
 For additional commands, e-mail:
 [EMAIL PROTECTED]
 
 


-
To unsubscribe, e-mail: [EMAIL 

Re: fop with lenya: how can I suppress the lenya:meta in a created pdf

2005-03-16 Thread Sascha Teifke
Michael Wechner wrote:
Sascha Teifke wrote:
I am using fop with apache lenya to create pdf files.
I'm using a simple xsl-file for transforming the created
lenya xml files into pdf files:
   fo:page-sequence master-reference=all
   fo:flow flow-name=xsl-region-body
   fo:blockxsl:apply-templates//fo:block

xsl:apply-templates select=/html/*[local-name() != 'meta']/
HTH
Michi
I did so, but now my page is blank ...



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: fop with lenya: how can I suppress the lenya:meta in a created pdf

2005-03-16 Thread Michael Wechner
Sascha Teifke wrote:
Michael Wechner wrote:
Sascha Teifke wrote:
I am using fop with apache lenya to create pdf files.
I'm using a simple xsl-file for transforming the created
lenya xml files into pdf files:
   fo:page-sequence master-reference=all
   fo:flow flow-name=xsl-region-body
   fo:blockxsl:apply-templates//fo:block


xsl:apply-templates select=/html/*[local-name() != 'meta']/
HTH
Michi
I did so, but now my page is blank ...

I guess the namespaces needed to be added ...
Michi




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


--
Michael Wechner
Wyona Inc.  -   Open Source Content Management   -   Apache Lenya
http://www.wyona.com  http://lenya.apache.org
[EMAIL PROTECTED][EMAIL PROTECTED]
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: fop with lenya: how can I suppress the lenya:meta in a created pdf

2005-03-16 Thread Sascha Teifke
Michael Wechner wrote:
Sascha Teifke wrote:
Michael Wechner wrote:
Sascha Teifke wrote:
I am using fop with apache lenya to create pdf files.
I'm using a simple xsl-file for transforming the created
lenya xml files into pdf files:
   fo:page-sequence master-reference=all
   fo:flow flow-name=xsl-region-body
   fo:blockxsl:apply-templates//fo:block


xsl:apply-templates select=/html/*[local-name() != 'meta']/
HTH
Michi
I did so, but now my page is blank ...

I guess the namespaces needed to be added ...
Michi
Sorry, I am completely new to this and I really hope it isn't to 
annoying 

how can this be done?




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


text-indent issue

2005-03-16 Thread Puppala, Kumar (LNG-DAY)








If I have text-indent specified on an fo:block and if I have
a nested block within this, the text following this nested block is indented as
well. For example:



fo:block text-indent="5"

 This is just for testing
purpose and this line will be indented.

 fo:blockthis is the nested block
/fo:block

 The text following the nested block
is indented as well...not sure if this is as per spec. since it does not
happen in other renderers.

/fo:block



In the above example, the text following the second block
should not be indented since text-indent applies only to the first line of that
block and not to any subsequent text in that block. Is there a way to get
around this issue by specifying some property on the first block? I appreciate
your help.



Thanks,

Kumar Puppala










Re: text-indent issue

2005-03-16 Thread JBryant
Since both the text preceding the nested block and the text following the 
nested block are within the indented block, the text after the nested 
block gets indented. You'd need to move the text after the nested block to 
its own block to not have it be indented.

fo:block text-indent=5
  This is just for testing purpose and this line will be indented.
fo:blockthis is the nested block /fo:block
/fo:block
fo:block
 The text following the nested block is indented as well...not sure if 
this is as per spec. since it does not happen in other renderers.
/fo:block

If other rendering engines are NOT indenting the text after the nested 
block, then they are not honoring the spec. The attributes of a block 
should be applied to ALL the things within the block (unless specifically 
overridden by a child element's attributes).

HTH

Jay Bryant
Bryant Communication Services
(presently consulting at Synergistic Solution Technologies)





Puppala, Kumar (LNG-DAY) [EMAIL PROTECTED] 
03/16/2005 12:31 PM
Please respond to
fop-users@xmlgraphics.apache.org


To
'fop-users@xmlgraphics.apache.org' fop-users@xmlgraphics.apache.org
cc

Subject
text-indent issue






If I have text-indent specified on an fo:block and if I have a nested 
block within this, the text following this nested block is indented as 
well. For example:
 
fo:block text-indent=5
  This is just for testing purpose and this line will be indented.
fo:blockthis is the nested block /fo:block
 The text following the nested block is indented as well...not sure if 
this is as per spec. since it does not happen in other renderers.
/fo:block
 
In the above example, the text following the second block should not be 
indented since text-indent applies only to the first line of that block 
and not to any subsequent text in that block. Is there a way to get around 
this issue by specifying some property on the first block? I appreciate 
your help.
 
Thanks,
Kumar Puppala
 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: text-indent issue

2005-03-16 Thread Puppala, Kumar (LNG-DAY)
I totally agree that all the PCDATA is owned by the outer fo:block and hence
when it applies the text-indent property, it should apply only to the first
line in that block. The spec. for text-indent says:
This property specifies the indentation of the first line of text
in  a block. More precisely, it specifies the indentation of the first
box that flows into the block's first line box. The box is indented with
respect to the left (or right, for right-to-left layout) edge of theline
box. User agents should render this indentation as blank space.

Any thoughts or comments?

Thanks,
Kumar Puppala


-Original Message-
From: Glen Mazza [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 16, 2005 1:46 PM
To: fop-users@xmlgraphics.apache.org
Subject: Re: text-indent issue

--- Puppala, Kumar (LNG-DAY)
[EMAIL PROTECTED] wrote:
 If I have text-indent specified on an fo:block and
 if I have a nested block
 within this, the text following this nested block is
 indented as well. For
 example:
 
  
 
 fo:block text-indent=5
 
   This is just for testing purpose and this line
 will be indented.
 
 fo:blockthis is the nested block /fo:block
 
  The text following the nested block is indented
 as well...not sure if
 this is as per spec. since it does not happen in
 other renderers.
 
 /fo:block
 
 
 In the above example, the text following the second
 block should not be
 indented since text-indent applies only to the first
 line of that block and
 not to any subsequent text in that block. 

I really don't think so.  All of the PCDATA in your
example is owned by that outer fo:block, and subject
to its properties.

 Is there a
 way to get around this
 issue by specifying some property on the first
 block? I appreciate your
 help.
 

De-nest your fo:blocks?

Glen


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: fop with lenya: how can I suppress the lenya:meta in a created pdf

2005-03-16 Thread Andreas L. Delmelle
 -Original Message-
 From: Sascha Teifke [mailto:[EMAIL PROTECTED]


Hi,

(*sigh*... Glen's right, you know. Question is actually more suited for
Mulberry, but here we go anyway...)

Normally, to keep the lenya:meta element from appearing in the ouput, all
you need to do is add an empty template like so:

xsl:template match=lenya:meta
xmlns:lenya=http://apache.org/cocoon/lenya/page-envelope/1.0; /

However, you will still run into trouble, since your source document is in
the XHTML namespace, and you only have templates for nodes that are in no
namespace...

 ?xml version=1.0 encoding=iso-8859-1?
 xsl:stylesheet
 xmlns:xsl=http://www.w3.org/1999/XSL/Transform; version=1.0
 xmlns:fo=http://www.w3.org/1999/XSL/Format;

You want to add these bindings:
  xmlns:h=http://www.w3.org/1999/xhtml;
  xmlns:lenya=http://apache.org/cocoon/lenya/page-envelope/1.0;

and to keep those namespaces from being repeated in the result:
  exclude-result-prefixes=h lenya
  

Then, the templates need to be slightly adjusted:

 xsl:template match=h:p
...
 xsl:template match=h:meta
...
 xsl:template match=h:s1
...
And an empty template:
  xsl:template match=lenya:meta /

Should work...

HTH!

Greetz,

Andreas


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: text-indent issue

2005-03-16 Thread JBryant
My apologies. I had confused text-indent with start-indent.

I guess FOP has a bug here. The work around appears to be not having text 
after a nested block.

Jay Bryant
Bryant Communication Services
(presently consulting at Synergistic Solution Technologies)




Puppala, Kumar (LNG-DAY) [EMAIL PROTECTED] 
03/16/2005 12:49 PM
Please respond to
fop-users@xmlgraphics.apache.org


To
'fop-users@xmlgraphics.apache.org' fop-users@xmlgraphics.apache.org
cc

Subject
RE: text-indent issue






I totally agree that all the PCDATA is owned by the outer fo:block and 
hence
when it applies the text-indent property, it should apply only to the 
first
line in that block. The spec. for text-indent says:
 This property specifies the indentation of the first 
line of text
in   a block. More precisely, it specifies the indentation of 
the first
box  that flows into the block's first line box. The box is 
indented with
respect to the left (or right, for right-to-left layout) edge of the  line
box. User agents should render this indentation as blank space.

Any thoughts or comments?

Thanks,
Kumar Puppala


-Original Message-
From: Glen Mazza [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 16, 2005 1:46 PM
To: fop-users@xmlgraphics.apache.org
Subject: Re: text-indent issue

--- Puppala, Kumar (LNG-DAY)
[EMAIL PROTECTED] wrote:
 If I have text-indent specified on an fo:block and
 if I have a nested block
 within this, the text following this nested block is
 indented as well. For
 example:
 
 
 
 fo:block text-indent=5
 
   This is just for testing purpose and this line
 will be indented.
 
 fo:blockthis is the nested block /fo:block
 
  The text following the nested block is indented
 as well...not sure if
 this is as per spec. since it does not happen in
 other renderers.
 
 /fo:block
 
 
 In the above example, the text following the second
 block should not be
 indented since text-indent applies only to the first
 line of that block and
 not to any subsequent text in that block. 

I really don't think so.  All of the PCDATA in your
example is owned by that outer fo:block, and subject
to its properties.

 Is there a
 way to get around this
 issue by specifying some property on the first
 block? I appreciate your
 help.
 

De-nest your fo:blocks?

Glen


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: text-indent issue

2005-03-16 Thread Puppala, Kumar (LNG-DAY)
Can anyone direct me to the code where I can prevent inheritance of the
text-indent property in the scenario mentioned below? I would like to make
those changes in my local copy of Apache source code (0.20.5) since this
would impact our application. Any help is greatly appreciated.

Thanks,
Kumar Puppala


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 16, 2005 2:10 PM
To: fop-users@xmlgraphics.apache.org
Subject: RE: text-indent issue

My apologies. I had confused text-indent with start-indent.

I guess FOP has a bug here. The work around appears to be not having text 
after a nested block.

Jay Bryant
Bryant Communication Services
(presently consulting at Synergistic Solution Technologies)




Puppala, Kumar (LNG-DAY) [EMAIL PROTECTED] 
03/16/2005 12:49 PM
Please respond to
fop-users@xmlgraphics.apache.org


To
'fop-users@xmlgraphics.apache.org' fop-users@xmlgraphics.apache.org
cc

Subject
RE: text-indent issue






I totally agree that all the PCDATA is owned by the outer fo:block and 
hence
when it applies the text-indent property, it should apply only to the 
first
line in that block. The spec. for text-indent says:
 This property specifies the indentation of the first 
line of text
in   a block. More precisely, it specifies the indentation of 
the first
box  that flows into the block's first line box. The box is 
indented with
respect to the left (or right, for right-to-left layout) edge of the  line
box. User agents should render this indentation as blank space.

Any thoughts or comments?

Thanks,
Kumar Puppala


-Original Message-
From: Glen Mazza [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 16, 2005 1:46 PM
To: fop-users@xmlgraphics.apache.org
Subject: Re: text-indent issue

--- Puppala, Kumar (LNG-DAY)
[EMAIL PROTECTED] wrote:
 If I have text-indent specified on an fo:block and
 if I have a nested block
 within this, the text following this nested block is
 indented as well. For
 example:
 
 
 
 fo:block text-indent=5
 
   This is just for testing purpose and this line
 will be indented.
 
 fo:blockthis is the nested block /fo:block
 
  The text following the nested block is indented
 as well...not sure if
 this is as per spec. since it does not happen in
 other renderers.
 
 /fo:block
 
 
 In the above example, the text following the second
 block should not be
 indented since text-indent applies only to the first
 line of that block and
 not to any subsequent text in that block. 

I really don't think so.  All of the PCDATA in your
example is owned by that outer fo:block, and subject
to its properties.

 Is there a
 way to get around this
 issue by specifying some property on the first
 block? I appreciate your
 help.
 

De-nest your fo:blocks?

Glen


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: fop with lenya: how can I suppress the lenya:meta in a created pdf

2005-03-16 Thread Sascha Teifke
Thank you very much!
That was it!
I will subscribe to the mulberry list at once.
So long!
Sascha

Andreas L. Delmelle wrote:
-Original Message-
From: Sascha Teifke [mailto:[EMAIL PROTECTED]
   

Hi,
(*sigh*... Glen's right, you know. Question is actually more suited for
Mulberry, but here we go anyway...)
Normally, to keep the lenya:meta element from appearing in the ouput, all
you need to do is add an empty template like so:
xsl:template match=lenya:meta
xmlns:lenya=http://apache.org/cocoon/lenya/page-envelope/1.0; /
However, you will still run into trouble, since your source document is in
the XHTML namespace, and you only have templates for nodes that are in no
namespace...
 

?xml version=1.0 encoding=iso-8859-1?
xsl:stylesheet
   xmlns:xsl=http://www.w3.org/1999/XSL/Transform; version=1.0
   xmlns:fo=http://www.w3.org/1999/XSL/Format;
   

You want to add these bindings:
 xmlns:h=http://www.w3.org/1999/xhtml;
 xmlns:lenya=http://apache.org/cocoon/lenya/page-envelope/1.0;
and to keep those namespaces from being repeated in the result:
 exclude-result-prefixes=h lenya
 


   

Then, the templates need to be slightly adjusted:
 

   xsl:template match=h:p
   

...
 

   xsl:template match=h:meta
   

...
 

   xsl:template match=h:s1
   

...
And an empty template:
 xsl:template match=lenya:meta /
Should work...
HTH!
Greetz,
Andreas
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: text-indent issue

2005-03-16 Thread Andreas L. Delmelle
 -Original Message-
 From: Puppala, Kumar (LNG-DAY) [mailto:[EMAIL PROTECTED]

 Can anyone direct me to the code where I can prevent inheritance of the
 text-indent property in the scenario mentioned below?

I can point you to the code:

{your-fop-dir}/src/org/apache/fop/fo/flow/Block.java


Unfortunately, I have no precise idea on what exactly needs to be done to
solve your problem... My best guess is that it has something to do with the
'anythingLaidOut' member variable, so I'd start off by watching closely what
happens to that variable when a nested block is added...

HTH!

Greetz,

Andreas


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: text-indent issue

2005-03-16 Thread Victor Mote
Kumar Puppala wrote: 

 Can anyone direct me to the code where I can prevent 
 inheritance of the text-indent property in the scenario 
 mentioned below? I would like to make those changes in my 
 local copy of Apache source code (0.20.5) since this would 
 impact our application. Any help is greatly appreciated.

It is almost certainly not a problem with the inheritance itself, but rather
with the way the layout system signifies which LineArea objects are the
first. I would start with the variable isFirst in layout/Area.java and
find occurrences in the Block and Line layout that reference it, then work
backwards from there. It sure could be something else, but that is my best
guess about where to start. (I don't have FOP 0.20.5 set up in a development
environment anymore, or I would dig a bit deeper for you). HTH.

Victor Mote


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: fop with lenya: how can I suppress the lenya:meta in a created pdf

2005-03-16 Thread Michael Wechner
Sascha Teifke wrote:
Thank you very much!
That was it!
I will subscribe to the mulberry list at once.

I don't know if you are also subscribed to the Lenya list,
but your XSLT would be a nice contribution ;-)
Michi
--
Michael Wechner
Wyona Inc.  -   Open Source Content Management   -   Apache Lenya
http://www.wyona.com  http://lenya.apache.org
[EMAIL PROTECTED][EMAIL PROTECTED]
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]