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

Re: URL rewriting of links on xsl pages?

Subject: Re: URL rewriting of links on xsl pages?
From: David Carlisle <davidc@xxxxxxxxx>
Date: Mon, 5 Mar 2001 17:26:47 GMT
url rewriting sid
  I take it what your saying is I would have to do something like:
 
  <a>
    <xsl:attribute name="href"><xsl:value-of
  select="$sid"/>/path/page.jsp</xsl:attribute>
  </a>

which is just a long form of th eequivalent expression:

<a href="{$sid}/path/page.jsp"/>

(no content to the a element, so nothing to click on??)

] Also, why is it sometimes when I do this:
] 
]  <a>
]   <xsl:attribute name="href">
]     <xsl:value-of select="$sid"/>/path/page.jsp
                                                 ^
]   </xsl:attribute>
 ^^^
] </a>

In this form you have a newline and 3 spaces at the end of the
attribute. These will show up as numeric character references
to ensure that they are not removed by th eXML parser's attribute
normalisation. You don't want the white space, but XSLT doesn't know
that and it's mandated to preserve it if you enter it in this way.

David

_____________________________________________________________________
This message has been checked for all known viruses by Star Internet delivered
through the MessageLabs Virus Control Centre. For further information visit
http://www.star.net.uk/stats.asp

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


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.