-
|
Hi Patrick, I returning to this argument because perhaps I misunderstood it (most likely). I have a The peculiarity of this master pages is to have When I invoke it through the <!-- INDEX SECTION -->
<!-- [index#4] -->
<Record element="index">
<ClearPage pagetype="idx" matter="index" />
<PlaceObject area="idxcols">
<Table balance="no" fontfamily="index">
<ForAll select="idxsection">
<Tr break-below="no" top-distance="10pt">
<Td colspan="2" background-color="mpColorA" padding-left="1mm">
<Paragraph>
<B>
<Value select="@name" />
</B>
</Paragraph>
</Td>
</Tr>
<ForAll select="indexentry">
<Tr>
<Td>
<Paragraph>
<NoBreak reduce="fontfit">
<Value select="concat(@name, ' ')" />
</NoBreak>
</Paragraph>
</Td>
<Td align="right">
<Paragraph>
<Value select="@page" />
</Paragraph>
</Td>
</Tr>
<entry level="info" msg="Create page" type="right" pagenumber="127"></entry> </ForAll>
</ForAll>
</Table>
</PlaceObject>
<ClearPage pagetype="idx" />
</Record>However it is not applying the same <entry level="debug" msg="Call command" name="ProcessNode" line="108"></entry>
<entry level="debug" msg="Process node" node="index" mode="" pos="1"></entry>
<entry level="debug" msg="Call command" name="ClearPage" line="988"></entry>
<entry level="debug" msg="Call command" name="PlaceObject" line="989"></entry>
<entry level="info" msg="Create page" type="idx" pagenumber="126"></entry>
<!-- A LOT OF REPEATED LINES -->
<entry level="info" msg="Create page" type="right" pagenumber="127"></entry>The next page is the What I am doing wrong? 🤷♂️ Thanks... 🙏 |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
|
I hope I understand this correctly: the page type "idx" is created once, then (I assume) some items appear on the page and the next page is not the "idx" type, right? Page types are detected automatically by the I think what you need is something like this: <Layout xmlns="urn:speedata.de:2009/publisher/en"
xmlns:sd="urn:speedata:2009/publisher/functions/en"
xmlns:sf="justanamespace"
>
<Function name="sf:printsomething">
<Param name="count" />
<Loop select="$count">
<PlaceObject>
<Textblock>
<Paragraph>
<Value>Hello</Value>
</Paragraph>
</Textblock>
</PlaceObject>
</Loop>
</Function>
<Pagetype name="idx" test="$inIndex">
<AtPageCreation>
<PlaceObject>
<Textblock>
<Paragraph>
<Value>page type idx</Value>
</Paragraph>
</Textblock>
</PlaceObject>
</AtPageCreation>
</Pagetype>
<SetVariable variable="inIndex" select="false()" />
<Record element="data">
<Value select="sf:printsomething(2)" />
<SetVariable variable="inIndex" select="true()" />
<ClearPage />
<Value select="sf:printsomething(30)" />
<SetVariable variable="inIndex" select="false()" />
<ClearPage />
<Value select="sf:printsomething(2)" />
</Record>
</Layout>
|
Beta Was this translation helpful? Give feedback.
I hope I understand this correctly: the page type "idx" is created once, then (I assume) some items appear on the page and the next page is not the "idx" type, right?
Page types are detected automatically by the
test="..."attribute, unless required explicitly byClearPage. Therefore the second page in the index is detected by regular means, not by name.I think what you need is something like this: