Wrox Programmer Forums
Go Back   Wrox Programmer Forums > XML > XSLT
|
XSLT General questions and answers about XSLT. For issues strictly specific to the book XSLT 1.1 Programmers Reference, please post to that forum instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the XSLT section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old March 27th, 2007, 02:41 AM
Authorized User
 
Join Date: Mar 2007
Posts: 22
Thanks: 0
Thanked 0 Times in 0 Posts
Default <a> tag in XML

i am using this tag in xml

<link name="Book" url="mailto:xxx@ddd.com?subject=testReport" description="XXX" />

when i access this tag inside XSLT like this

<a href="{link/@url}"><xsl:value-of select="link/@name" /></a>

and when i click in the HTML [output] file and it opens the outLook but it shows subject empty. can anybody tells why it is not getting the subject field or any alternative.thanks

I Love XML and family
__________________
I Love XML and family
 
Old March 27th, 2007, 02:58 AM
Registered User
 
Join Date: Jan 2007
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default

This works for me!



 
Old March 27th, 2007, 02:59 AM
mhkay's Avatar
Wrox Author
 
Join Date: Apr 2004
Posts: 4,962
Thanks: 0
Thanked 292 Times in 287 Posts
Default

There's nothing wrong with the code you've shown us - which means that the bug is in the code you haven't shown us.

Michael Kay
http://www.saxonica.com/
Author, XSLT Programmer's Reference and XPath 2.0 Programmer's Reference
 
Old March 27th, 2007, 03:45 AM
Authorized User
 
Join Date: Mar 2007
Posts: 22
Thanks: 0
Thanked 0 Times in 0 Posts
Default

mhkay,

how can i handle the [u]&</u> inside xslt, because when i put the for the body of the email

 <link name="Book" url="mailto:sani723@gmail.com?subject=testReport&b ody=Youselected1" description="Book Room" />

it gives error. any suggestion and if i am using wrong format then sorry:) and let me know

I Love XML and family
 
Old March 27th, 2007, 03:49 AM
joefawcett's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 3,074
Thanks: 1
Thanked 38 Times in 37 Posts
Default

This is a vey basic question, XML uses ampersand as a special character so you need to use &-a-m-p-; but without the hyphens.

--

Joe (Microsoft MVP - XML)
 
Old March 27th, 2007, 04:16 AM
mhkay's Avatar
Wrox Author
 
Join Date: Apr 2004
Posts: 4,962
Thanks: 0
Thanked 292 Times in 287 Posts
Default

In XML (and therefore in XSLT), ampersand must always be escaped as

& a m p ;



Michael Kay
http://www.saxonica.com/
Author, XSLT Programmer's Reference and XPath 2.0 Programmer's Reference





Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I transform XSLT without the <?xml?> tag? nadavvin XSLT 4 June 10th, 2007 09:25 AM
<meta> tag is appearing in xml file saurabh_inblore XSLT 2 April 24th, 2006 11:56 PM
<Form> tag within <form> tag rit01 ASP.NET 2.0 Basics 3 April 23rd, 2006 08:12 AM
XML to (different <tag>) XML mapping Thodoris XML 4 April 27th, 2004 04:02 AM
HELP HELP ODBC<->ASP <-> XML moon Wrox Book Feedback 1 November 9th, 2003 12:42 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.