[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Problem with Output special char in HTML attribute

Subject: Re: Problem with Output special char in HTML attribute
From: Fabio Cuomo <fabio.cuomo@xxxxxxxxx>
Date: Thu, 9 Dec 2004 17:42:28 +0100
xml special char
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="xml" version="1.0" media-type="text/html"
        indent="yes" 
        standalone="yes" 
        encoding="ISO-8859-1" omit-xml-declaration="yes"/>

<xsl:template match="/document">
  <html xmlns="http://www.w3.org/1999/xhtml" lang="it" xml:lang="it">
	<head>
		<title>	<xsl:value-of select="@title"/>	</title>
        </head>
	<body>
	  <h1>Some Header H1</h1>
	  <div id="header">
		<a href="#" title="Home page" accesskey="1" tabindex="1">
                       Home page
		</a>
	  </div>
  	  <dd>
	     <ul>
		<li>
		  <a href="#" accesskey="p" tabindex="2">Entry 1</a>
		</li>
		<li>
		  <a href="#" accesskey="t" tabindex="2">Entry 2</a>
		</li>
		<li>
		  <a href="#" accesskey="a" tabindex="3">Entry 3</a>
		</li>
	</dd>
  	  <dd>
	     <ul>
		<li>
		  <a href="#" accesskey="a" tabindex="4">Entry 4</a>
		</li>
		<li>
		  <a href="#" accesskey="b" tabindex="5">Entry 5</a>
		</li>
		<li>
		  <a href="#" accesskey="c" tabindex="6">Entry 6</a>
		</li>
	</dd>
         <div id="content"><p><xsl:value-of select="content"/></p></div>
     </body>
  </html>
 </xsl:template>
</xsl:stylesheet>


This is complete trasformation...I read an XML document that contains
only one tag with content and attribute title. I get them and display
in right position. Links in my document are stati link, organized in
list, unordered list. If I use position i get  the position number in
the current node list of the node that is currently being processed,
or rather get same position for all tabindex attribute.
I would want to generate value of tabindex attribute in such way that
can add or reorganize my link tags without re-organize all tabindex.

Regards,
Mulp.

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.