Jump to content

Xlink:actuate="onRequest"


Guest lost
 Share

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...