how to include another XML document with XSLT?

R

Rosa

hallo!

it must be very easy, but I don't get the function document (explained
in http://www.w3.org/TR/1999/REC-xslt-19991116#document) to work. I'm
parsing an XML document with XSLT to write a text document and need to
'input' extern xml files. The name of the externs file comes as
attributes in of certain in the main XML file.

Could somebody send me an example or an web-address with more
explanations?

Thanks,

Rosa
 
P

Peter Flynn

Rosa said:
hallo!

it must be very easy, but I don't get the function document (explained
in http://www.w3.org/TR/1999/REC-xslt-19991116#document) to work. I'm
parsing an XML document with XSLT to write a text document and need to
'input' extern xml files. The name of the externs file comes as
attributes in of certain in the main XML file.

Could somebody send me an example or an web-address with more
explanations?

<xsl:variable name="somedata"
select="document('somefile.xml')/foo/bar/blort"/>

///Peter
 

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,997
Messages
2,570,240
Members
46,828
Latest member
LauraCastr

Latest Threads

Top