473,395 Members | 1,516 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

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 compute 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
Jul 20 '05 #1
1 2020

thank you!

herzliche Grüße
Johannes Busse
Jul 20 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Johannes Busse | last post by:
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> ...
5
by: John Taylor-Johnston | last post by:
This will give me the source of the current page. <a herf="javascript:document.location = 'view-source:'+document.location">testpage.htm</a> I want to display the source of another page, using...
8
by: Phil Powell | last post by:
if (document.location.href.indexOf('?') >= 0) document.location.href = document.location.href.substring(0, document.location.href.indexOf('?')); if (document.location.href.indexOf('#') >= 0) {...
2
by: yogesh.bhardwaj | last post by:
Hello all I am trying to modify the link URL when a user clicks on the link. Following is the code: <a onClick="document.location.href=modifyURL(this.href);" href="SOME_DYNAMIC_URL"...
2
by: Tanbeer | last post by:
I want to pass 2 paramaters to another page in my code with document.location I can see both of the when I send them through one at a time like: document.location =...
4
by: DNK2007 | last post by:
Hi all Look at the following code <html> <head> <script type="text/javascript"> document.location="http://www.gmail.com"; alert(document.location); </script>
7
by: alhalayqa | last post by:
Hello , I have attached the onpropertychange event to my document as : // the handler function function propertychangeHandler(){
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.