xsl-list
[Top] [All Lists]

Re: [xsl] Problem with embeded XHTML in an XML file and transformation to XSL:FO

2006-08-12 10:46:50
On Sat, 2006-08-12 at 22:06 +0530, Mukul Gandhi wrote:
On 8/12/06, Luuk Jansen <subscribe(_at_)angelosystems(_dot_)com> wrote:
I understand the logic, just a practical question.
I wrote the application with the javax.xml.transform. Is there a similar
function as saxon:parse() which I can use with my excising code or and
easy way to sue it without having to rewrite and retest the whole
application?

The classes and interfaces in the package javax.xml.transform are just
wrappers around a specific XSLT engine (for e.g. Xalan or Saxon).
Which XSLT engine you use with javax.xml.transform is determined by a
JAXP property (I don't remember the name just now; but you can easily
find it by googling). To use Saxon, set the value of this JAXP
property to the Saxon class. Then the system will recognize
saxon:parse() function.


Oke, thanks again, getting closer...

The next problem is: Cannot find a matching 1-argument function named
{http://icl.com/saxon}parse()

With the xsl:template as follows:

 <xsl:template match="Content" xmlns:saxon="http://icl.com/saxon";>      
                <xsl:if test=". != ''">
                        <fo:block space-after="10mm">
                                <xsl:variable name="htmlContent" 
select="saxon:parse(.)"/>
                                        <xsl:apply-templates 
select="$htmlContent"/>                                    
                        </fo:block>
                </xsl:if>
  </xsl:template>
 
How can I get the function to be found/work?

Thanks so much for the help!


--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--