Jump to content


Guest lost

Recommended Posts

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 post
Share on other sites
  • 2 years later...

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 post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...