Menu

XLink, XInclude support?

Help
2003-08-13
2003-08-15
  • Mark Fortner

    Mark Fortner - 2003-08-13

    I was trying to import some data from an RSS channel.  In my source document (upper left panel) I included the following statement
    <xmp>
    <roadmap xlink:type="simple" xlink:actuate="onLoad" xlink:show="embed" xlink:href="http://lexjira.lexgen.com:8080/jira/secure/IssueNavigator.jspa?pid=10001&amp;fixfor=10001&amp;resolutionIds=-1&amp;tempMax=25&amp;view=rss&amp;reset=true"/>
    </xmp>

    But this didn't appear in the document.  Am I doing this wrong, or is XLinking or XIncluding not supported?

     
    • Rob

      Rob - 2003-08-13

      I am not sure what you are saying. If you would like to load the document at the xlink:href you can do "file", "load xml" and type in the url there.

      If you wrote a style sheet to transform this fragment (obviously you'd need to define the xlink namespace) and you wanted the transformation to resolve the link and import the contents of that file into the result document - It would depened on how you wrote the stylesheet.

      I guess what it breaks down into is - I don't understand what you want / expect to happen.

       
    • Mark Fortner

      Mark Fortner - 2003-08-15

      According to what I've read on the w3c site (http://www.w3.org/TR/xlink/) whenever you include the xlink namespace and an XML fragment that makes use of the xlink:href ="someurl" that the text located at "someurl" is supposed to be included into your document.

      So if I create something like this:
      <project xmlns:xlink="...">
      <roadmap xlink:href="someurl"/>
      </project>

      Whenever I view this XML (or transform it) I should get
      <project ...>
         text found at someurl
      </project>

      However that's not happening.  So my question is, do the default transformers support this, or do I need to replace it with a different transformer (or DocBuilder), if so, which one.

       
      • Rob

        Rob - 2003-08-15

        I cannot say that I know much about Xlink, but from what I have read http://www.w3.org/TR/xlink/#N781 it appears it is used to create links to document - not include them. Though again I could be wrong I didn't read the whole thing.

        Treebeard is a front end for xslt processors - so if Xalan, Saxon, etc do what you are asking then treebeard will do what you want.

        I also don't know if you know what you are doing or just making wild guesses - if you know what you are doing (i.e. you have done this type of thing with other products) could you please send me a sample of your xml and xslt documents so I can see if this is an error / something that needs to be added to treebeard.

        Also - are you using the IDE or the custom tag.

         
    • Rob

      Rob - 2003-08-15

      nevermind about the IDE or custom tag part - the custom tag doesnt have an upper left pane :)

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.