Jump to content


  • Posts

  • Joined

  • Last visited

Everything posted by Bleedos

  1. Thank you very much. Someone from the xep-support list answered me. He told me to put "{ }" around my @type and @cle. It worked.Probably. I am looking at your solution and I think it would also work.Thank you again for your help.
  2. "rx" is for RenderX XEPxmlns:rx="http://www.renderx.com/XSL/Extensions"
  3. I thought of using generate-id() but, what do I use in the rx:bookmark? If I call generate-id() in the <fo:block> and in the <rx:bookmark>, it will generate two different ids?? If I only call it from the <fo:block>, do I have access to it from <rx:bookmark>. I am not sure of the way XSL files are processed. Is there an order? If the <fo:root> is processed first, I don't have access to the id of my <fo:block> because it is in a template?By the way, what does OMG mean? Thank you
  4. Hi everyone! I am new to the forum. I work for a financial institution. I came here to get some help 'cause I am sure that I am not the first one who encounters the problem I have. --> My problem!I am working on an XSL file to transform my XML to a PDF file. I am almost done. The only thing remaining is putting some bookmarks in my PDF file. The problem is that the XML data that I am receiving is dynamic. I don't know in advance how many bookmarks I will have and the ids that I will have to put in order to point to the good section of the PDF file. I hope that someone will be kind enough to help me.Edited -- Here is some more information:Full name: SebastienAlternative name(s): ShebBirth date(dd/mm/yyyy): August 1978Gender: MaleZodiacal sign: LeoCountry of residance: CanadaHeight: 6'0"Weight: 195lbsEyes: brownHair: brownSmoking/Drinking/Drugs: No/Stopped/NoFavourite Music: All kind of METAL, humourFavourite Movies: Rock Star, all historical moviesInterest: Metal music, programming (for my living!), kids (will have a daughter soon)Additional comments: Hope my english is not so bad!!!
  5. I though that my XSL file was finished before I started working with PDF bookmarks. I am using XEP with rx:bookmark extension. The bookmarks are created, I see them in my PDF file but they all point to the same destination, which is the last destination I specified in my loop.I have an XML file in which I have my data: <type_compte type="EOP"> <cheque type="dcn" recto="Images/recto1.jpg" cle="a" verso="Images/verso1.jpg" date="12 MAI 2005" nocheque="122" montant="1500.00" noref="12345678910" />......</type_compte><type_compte type="MC1"> <cheque type="dcn" recto="Images/recto2.jpg" cle="b".........</type_compte> Here is the code for my bookmarks: <rx:outline> <xsl:for-each select="//type_compte"> <rx:bookmark internal-destination="@type"> <rx:bookmark-label><xsl:value-of select="@type"/></rx:bookmark-label> <xsl:for-each select="cheque"> <rx:bookmark internal-destination="@cle"> <rx:bookmark-label><xsl:value-of select="@cle"/></rx:bookmark-label> </rx:bookmark> </xsl:for-each> </rx:bookmark> </xsl:for-each> </rx:outline> Here are my templates for "type_compte" and "cheque": <xsl:template match="type_compte"> <fo:block id="@type" text-align="left" font-weight="bold" font-size="11pt" space-before.minimum="12pt"> <xsl:value-of select="@type"/> </fo:block> <fo:block> <xsl:apply-templates /> </fo:block></xsl:template><xsl:template match="cheque"> <!-- Images recto et verso --> <fo:block id="@cle" text-align="left" space-after.minimum="3pt">......</xsl:template> The ids of my blocks elements are "cle" for "cheque" and "type" for "type_compte".The bookmarks appear in my PDF file. Here is what I get in my PDF: -EOP |- a |- b |- c |- d-MC1 |- e |- f |- g |- h |- i If I click on "c", it will point me to "i". The same thing with every other bookmark.If I click on "EOP", it will point me to "MC1".What do I do wrong??
  • Create New...