Go Back   Velocity Reviews > Newsgroups > XML
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply

XML - saxon document() location

 
Thread Tools Search this Thread
Old 06-30-2003, 03:28 PM   #1
Default saxon document() location



hello NG,

(1) I have a data-structure like the following:

<element name="abc">
<source href="http://some.where.there/file/name.xhtml#location" />
</element> ...
<element> ...


(2) under some.where.there i have the file /file/name.xhtml, which has
a division like

<div name="location">
... some xhtml-content ...
</div>

I want to include only this division of this file.
My solution would be to write an XSLT-stylesheet,
which collects all
locations in all external files, like

<xsl:template match="element">
<xsl:variable name="externalFile" select="XXXX" />
<xsl:variable name="externalLocation" select="YYYY" />
<xsl:copy-of
select="document($externalFile,.)//*[@name="$externalLocation"]
</xsl:template>

my question: how do I have to comute the XXXX and YYYY with saxon? I
guess there should be some functions like "give the file part" or
"give the location part"?

(or is there a more straight forward solution?)

thank you!


herzliche Grüße
Johannes Busse


Johannes Busse
  Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump