Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

XInclude problem

Status
Not open for further replies.

kyru

Programmer
Jan 17, 2009
45
ES
¿Why doesn't XInclude add the content of the file it refers to the master file? I have those two xml files:

master.xml

<?xml version="1.0" encoding="UTF-16"?>
<?xml-stylesheet href="master.xsl" type="text/xsl"?>
<a xmlns:xsi=" xmlns:xi=" <xi:include href="a.xml"/>
Pruena
</a>

a.xml
<?xml version="1.0" encoding="UTF-16"?>
<algo2>
test
</algo2>


If I test master.xml with a web navigator it doesn't seem to include a.xml, in fact, the master.xsl file contains the following transformation:

<h1> <xsl:value-of select="algo2"/> </h1>

And seems to be completely ignored showing a blank page instead.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top