Hi Johannes,

Johannes Hoechstaedter schrieb:
Hi Heather,

yes I thought the same. Thats what I tried, only to test the document() function:

<xsl:value-of select="document('$filename')/NodeA/NodeB/NodeC" />

but I got no output. When I insert <xsl:value-of select="doc-available('$filename')" /> for example, nothing works anymore :)

The content of $filename is correct.

The xml structure of the file is:

<NodeA>
   </NodeB>              <NodeC>
           text
       </NodeC>        </NodeB>
</NodeA>

Could it be still a path issue?

where is your XML file located? AFAIK source resolving is relative to the location of the sitemap file.

-- Andreas



Heather Rankin schrieb:
Hi Johannes,

You should be able to use the document() function to interrogate the
contents of an external XML file. It is also a good idea to use
doc-available() first to check for the existence of the file and build
the tree in memory.

Heather


--
Andreas Hartmann, CTO
BeCompany GmbH
http://www.becompany.ch
Tel.: +41 (0) 43 818 57 01


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to