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

RE: inline XML elements

Subject: RE: inline XML elements
From: "Chris Bayes" <Chris@xxxxxxxxxxx>
Date: Sat, 19 May 2001 18:19:26 +0100
inline xml xsl
Graham,
<xsl:template match="*|@*">
	<xsl:copy>
	 	<xsl:apply-templates select="@* | * | text()"/>
	 </xsl:copy>
</xsl:template>
<xsl:template match="explanation">
	<xsl:apply-templates />
</xsl:template>

Ciao Chris

XML/XSL Portal
http://www.bayes.co.uk/xml


>-----Original Message-----
>From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx
>[mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx]On Behalf Of Graham Clark
>Sent: 19 May 2001 17:40
>To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
>Subject:  inline XML elements
>
>
>
> hi,
>
> In my XML file, the contents of one element ("explanation") are a bit of
> HTML code, just plain text with a few anchor tags. I want to use an XSL
> file to basically output the contents of the "explanation" element as HTML
> (i.e. with the anchor tags as hyperlinks). Obviously, if you just use
> xsl:value-of, it doesn't put in the links. If I was doing this in a
> programming language, I'd loop through the text in the
> "explanation" element, and every time an anchor tag was found, it would be
> ouputted as such in the HTML. How is this done with XSL, or can it even be
> done at all? I realise that a differently laid-out XML file might have
> something to do with the solution.
>
> sorry for such a long winded description, but I'd be grateful if someone
> could help.
>
> thanks,
> Graham Clark.
>
> 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.