Guest lost Posted December 31, 2006 Share Posted December 31, 2006 I'm trying to create a simple link with Xlink but it isn't working or I'm doing something wrong.This is the code: <?xml version="1.0" encoding="ISO-8859-1"?><?xml-stylesheet type="text/xsl" href="teste2.xsl"?><corpo xmlns:xlink="http://www.w3.org/1999/xlink"> <menu> <topmenu> <item> <etiqueta xlink:href="artigos.xml" xlink:type="simple" xlink:actuate="onRequest">Artigos</etiqueta> </item> </topmenu> </menu></corpo> The word "Artigos" will become a text link, isn't it?If I set xlink:actuate to "onLoad" it works fine.Thanks in advance. Link to comment Share on other sites More sharing options...
prerna_1965@rediffmail.com Posted June 11, 2009 Share Posted June 11, 2009 Hi All,I am new to all this. I am trying to link one xml file to another. Here's my code. It just dosent work.<!-- DEFINING XLINK NAMESPACE --><anydoc xmlns:xlink="http://www.w3.org/1999/xlink" xlink:type="simple"> (anydoc is the root element containing dochead,sec*).<sec><head>Section Heading</head><p>Some text <it xlink:href="note.xml" xlink:show="new">Linking text</it>Rest of the text ....</p></sec>Although the file displays fine in the browser, the link does not work and while parsing the error "character ':' not allowed in attribute specification list" is shown in both these lines.Do we have to use XPointer with XLink to make it work? What about parsing errors?Please help. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now