Reputation: 1
I'm new here, I need help with a xslt transformation, in the source xml exists a reference to another xml, how can i access the data from external xml?, some like <xsl:value-of select="NewsItemRef/externaldata"/>
, help me please.
xml containing reference to other xml.
<NewsComponent>
<NewsLines>
<HeadLine>some description</HeadLine>
</NewsLines>
<NewsItemRef NewsItem="ref_external.xml"/>
</NewsComponent>
i want to get data from external xml referenced
Upvotes: 0
Views: 60
Reputation: 36815
You can open external XML documents using the document()
method:
<xsl:copy-of select="document(NewsItemRef/externaldata)"/>
Upvotes: 2