ASP Error: 70
Description: Permission denied
Source: Microsoft VBScript runtime error
|
[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: XLink transformations
Michael Kraus wrote: > I'm currently working on an XML/XSL/XLink Browser > (http://www.pms.informatik.uni-muenchen.de/lehre/projekt-diplom-arbeit/browser-toolkit.html) > and have the following problem: The Browser takes as input an XML file, > an XSLT stylesheet and an XLink linkbase. The links refer to elements in > the XML file, of course. Now, if the XML file is translated into FO (or > HTML), how can the browser know to which element(s) a certain XLink > refers? > [...] A couple of months ago I've written an XLink-processor for Cocoon (see xml.apache.org), and I had to deal with the same issues. What I have done is putting the responsibility for this with the stylesheet author. If there's an (simple) xlink defined on a source element, the stylesheet-author should make sure an HTML <a href="..."> element is inserted in the destination (or transformed) document (if you're converting to HTML, that is). If the transformed document doesn't contain the element anymore, then the link won't be there. And if you want a version of the document which doesn't contain the links, you simply write a stylesheet which doesn't insert linking elements. For XPointers (used as fragment identifiers in a link destination) I did the following: first resolve the XPointer on the source XML-document, and insert a special attribute on the element that the xpointer points to. Then, it is again the responsibility of the stylesheet to insert an HTML <a name="..."> element in the destination document whenever it sees this special attribute. I hope this explanation was clear enough:) As the other replies suggest, there's no way to transform the xpointers so that they still work on the transformed document. After all, the transformed document can be anything. It's very easy to write an XSLT stylesheet which converts a 10MB XML-document to just one <abc> element, how could the xpointers possibly be transformed accordingly? My XLink-processor also converted extended linkdescriptions in simple xlinks and loaded external linkbases and such nice things. If you want to have a look at it, search in the cocoon mailing list archives. Greetings, Bruno Dumon.
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|
|||||||||

Cart








