saxon document() location

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Johannes Busse

    #1

    saxon document() location


    hello NG,

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

    <element name="abc">
    <source href="http://some.where.ther e/file/name.xhtml#loca tion" />
    </element> ...
    <element> ...


    (2) under some.where.ther e 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="externalF ile" select="XXXX" />
    <xsl:variable name="externalL ocation" select="YYYY" />
    <xsl:copy-of
    select="documen t($externalFile ,.)//*[@name="$externa lLocation"]
    </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
Working...