开发者

Referencing elements in xsl-fo

is it possible to "reference" elements in xsl-fo? What I am trying to do is the following:

<开发者_如何学编程;fo:marker marker-class-name="continued">
<!-- much much more xml text content -->
</fo:marker>

<--.....-->

<fo:table-body>
 <fo:table-row>
  <!--at his point I'd like to "reference" (or copy) the marker from above -->
 </fo:table-row>
 <!--many more rows which reference the same marker -->
</fo:table-body>

The reason for this is that if I have a lot of rows in my table and the marker content is large then the xml simply gets too big. I have tried the xsl:copy-of element, since this looks what I'm trying to do:

http://www.w3schools.com/xsl/el_copy-of.asp

But this won't work with my fo, appearently the copy-of elements are ignored since I'm not getting any table headers in the output. Any ideas? I'm using the ecrion fo renderer.

Thanks

Stefan


Try using fo:retrieve-marker.

For example:

<fo:marker marker-class-name="continued">
<!-- much much more xml text content -->
</fo:marker>

<--.....-->

<fo:table-body>
 <fo:table-row>
  <fo:retrieve-marker retrieve-class-name="continued" retrieve-position="first-including-carryover"/>
 </fo:table-row>
 <!--many more rows which reference the same marker -->
</fo:table-body>
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜