xml-include

M

maalej

I want to insert one xml into another xml, and then with xslt(xalan)
transform.

xalan and xerces not support xinclude.

someone has an idea ?

thanks
Maalej
 
M

Martin Honnen

maalej said:
I want to insert one xml into another xml, and then with xslt(xalan)
transform.

xalan and xerces not support xinclude.

The Xerces version included with Sun Java 1.5 (alias Java 5) has
XInclude support so that way you should be able to have one XML include
another, parse it so that the Xinclusion is made and pass on the result
to a transformation.
 
D

David Carlisle

maalej said:
I want to insert one xml into another xml, and then with xslt(xalan)
transform.

xalan and xerces not support xinclude.

someone has an idea ?

thanks
Maalej

If you have XSLT you don't really need a separate xinclude processor,
xslt can express (most of) the inclusion semantic directly.
Some of the earliest xinclude processors were implemented as xslt
stylesheets. Basically you just want a template that matches x:include
and calls document() to fetch the referenced file.

David
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,999
Messages
2,570,246
Members
46,839
Latest member
MartinaBur

Latest Threads

Top