sortcuts in xmlxslt

H

hilz

Hi group....
I have this situation where i cannot get it to work.
I appreciate any help.

you know how you can put shortcuts in an html file like

<a name="abc">

and then somewhere else in the html file, you can have

<a href="#abc">

so when you click on this second one, it will take you to the first one....

now the url for this location in the page could be something like this:

http://www.somepage.com/mypage.html#abc

and this URL will take you right to place of the <a name="abc"> in the
document mypage.html.


now i want to be able to do the same with xml +xslt.

so if my html page is generated by combining an xml file with a
stylsheet, and my xml file is mypage.xml, this does *not* work for some
reason:

http://www.somepage.com/mypage.xml#abc

does anyone know if this is possible at all? or if there is another way
to get shortcuts to work in xml+xslt ?

thanks
 
H

hilz

Gomolyako said:
See XPointer, XLink.
(http://www.w3.org/TR/1999/NOTE-xptr-req-19990224)

Best, Ed.

hilz wrote:

Ed, thank you for the tip.
I couldn't really make much sense of the specification.
I looked for XPointer tutorials on the web, and from what it looks like,
it is to link to elements in the xml file itself.
but i want to link to a location in the generated document
(the result of combining the xml with an xslt). so the result may look
totally different than the xml file.
Any other suggestions

thanks
 
P

Peter Flynn

hilz said:
Ed, thank you for the tip.
I couldn't really make much sense of the specification.
I looked for XPointer tutorials on the web, and from what it looks like,
it is to link to elements in the xml file itself.
but i want to link to a location in the generated document
(the result of combining the xml with an xslt). so the result may look
totally different than the xml file.

But what format is this generated document, XML or HTML?

If it's HTML, just generate the name and href attributes.

If it's XML, I'm afraid you'll have to read the spec, and
understand that it's relatively new and unsupported as yet.

///Peter
 
H

hilz

But what format is this generated document, XML or HTML?

If it's HTML, just generate the name and href attributes.

If it's XML, I'm afraid you'll have to read the spec, and
understand that it's relatively new and unsupported as yet.

///Peter

Thanks Peter
Actually the generated files are HTML.
For some reason when i first tried it, it did not work.
now i gave it another shot, and it works fine!

thanks for your help
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,001
Messages
2,570,254
Members
46,849
Latest member
Fira

Latest Threads

Top