Problem with xmlns while PDF creating - InfoPath Dev
in

InfoPath Dev

Problem with xmlns while PDF creating

Last post 02-03-2006 01:51 AM by frala. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 02-03-2006 12:34 AM

    • frala
    • Not Ranked
    • Joined on 11-09-2005
    • France
    • Posts 16

    Problem with xmlns while PDF creating

    Hi,

    I wrote a XSL stylesheet to create PDF document from the saved Infopath XML.
    For each <div> tags (created from text area), I should create a <fo:block>. But, as the <div> tag is defined like this in XML : <div xmlns="http://www.w3.org/1999/xhtml">, my 'div' template is never called.
    Same problem with a <a href>.

    The 'div' template :
    <xsl:template match="div">
    <fo:block>
    <xsl:apply-templates/>
    </fo:block>
    </xsl:template>


    Do you have any clue to solve this ?
    I think that I missed something initialisation and/or declaration about but I don't know what.

    Franck
  • 02-03-2006 01:51 AM In reply to

    • frala
    • Not Ranked
    • Joined on 11-09-2005
    • France
    • Posts 16

    Re: Problem with xmlns while PDF creating

    Ok, i have found. I have to write :

    <xsl:template match="xhtml:div">
    <fo:block>
    <xsl:apply-templates/>
    </fo:block>
    </xsl:template>

    and it works

    Franck
Page 1 of 1 (2 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.