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

RE: Embedding html within xml

Subject: RE: Embedding html within xml
From: "John Reid" <John.Reid@xxxxxxxxxxxxxxx>
Date: Thu, 11 Mar 2004 16:58:19 +1000
html within xml
I like that idea copy-of. But have not yet got it to work


-----Original Message-----
From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx
[mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of Josh
Canfield
Sent: Thursday, 11 March 2004 4:26 AM
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject: RE:  Embedding html within xml


try copy-of instead of value-of... value-of returns the text value of
the node, which would render the <a> as just "click here."

<!-- copy the contents of the rule -->
<span class="goldmedium"><xsl:copy-of select="./node()"/></span>

Josh
-----Original Message-----
From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx
[mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx]On Behalf Of John Reid
Sent: Wednesday, March 10, 2004 5:11 AM
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject: RE:  Embedding html within xml


Took your advice and changed it to 

<rule type="Change of Particulars">To change your particulars. ie change
of address, marital   status etc <a
href="www.defence.gov.au/army/6hsb/h_Particulars.htm">click
here.</a></rule>

But how would I change the below to capture the <a></a>? It does not
exist within every rule

	<ul>
          	<xsl:for-each select="rules/rule">
	    <li class="strong"><xsl:value-of select="@type" /><br/>
		<span class="goldmedium"><xsl:value-of select="."
/></span></li>
	</xsl:for-each>
	</ul>


-----Original Message-----
From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx
[mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of David
Carlisle
Sent: Wednesday, 10 March 2004 10:44 PM
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject: Re:  Embedding html within xml



Usual advice is to change your input format to

<rule type="Change of Particulars">To change your particulars. ie change
of address, marital   status etc <a
href="www.defence.gov.au/army/6hsb/h_Particulars.htm">click
here.</a></rule>

But if that is out of your control then use (if your system supports it)
<xsl:template match="rule">
 <xsl:value-of disable-output-escaping="yes" select="."/>

but complain to someone about your unpleasant input...

David

-- 
http://www.dcarlisle.demon.co.uk/matthew

________________________________________________________________________
This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________

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


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


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


 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.