Il giorno 21/feb/05, alle 00:43, Jeremy Nelson ha scritto:
I am trying to use jx templates to control the flow of a WebApp. What I
want to do is from a source XML document (in this case hr_resume.xml)
transform it into an intermediary HTML page that includes jx processing.
Is this possible? Here is what I have tried to do so far:
In my sitemap I first tired to do this:
<map:pipeline> <map:match pattern="page.jx"> <map:generate type="jx" src="documents/hr_resume.xml" /> <map:transform type="xslt" src="xsl/resume2HTML" /> <map:serialize type="xhtml" /> </map:match> </map:pipeline>
Since the <jx:*> tags are inserted in the document by the XSL transform, which is executed *after* the JX generation phase, how is the JXTG supposed to work? It cannot see into the future.
Probably, the JXTemplateTransformer is what you're looking for.
<map:pipeline> <map:match pattern="page.jx"> <map:generate type="file" src="documents/hr_resume.xml" /> <map:transform type="xslt" src="xsl/resume2HTML" /> <map:transform type="jx"/> <map:serialize type="xhtml" /> </map:match> </map:pipeline>
Ugo
-- Ugo Cei - http://agylen.com/blojsom/blog/
smime.p7s
Description: S/MIME cryptographic signature
