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

RE: Search and Replace in XSLT

Subject: RE: Search and Replace in XSLT
From: "ciaran byrne" <ciaran.byrne@xxxxxxx>
Date: Fri, 11 Aug 2000 13:24:29 +0100
xslt replace tags
Thanks all for the help,
	It seems that the general consensus is that

<xsl:element name="....."> should be used. I have a few concerns
about this approach however:

1. Does this mean that the "tag" element becomes a child element of "img"

img
|
|_ _ tag

I want to include the tag element but not the img element in my output XML,
so that when I get <img src="x.bmp" alt="[tag]"> then the output is just
<tag/> ( sorry, I didn't specify that before !!)

2. How can I maipulate the case where I'd have mutiple attributes with
values
e.g.
<img src="x.bmp" alt="[tag1 value=tag1]Some text[tag2 value=tag2]"/>

The reason I use '[' and ']' is that '<' and '>' can't reside inside the
attribute.

FYI - the reason I'm taking this approach is that in my MSHTML editor I
can't handle
unknown tags, so I was thinking of using a placeholder image with the "alt"
value
containing the XML markup that can't be recognised. Then when going back to
XML,
I recognise the image as a placeholder and extract from the "alt" attribute
the
XML markup and display as such. I'm open to any other ideas on this approach
!!

-----Original Message-----
From: owner-xsl-list@xxxxxxxxxxxxxxxx
[mailto:owner-xsl-list@xxxxxxxxxxxxxxxx]On Behalf Of Thorbjørn Ravn
Andersen
Sent: Friday, August 11, 2000 12:03 PM
To: 'xsl-list@xxxxxxxxxxxxxxxx'
Subject: RE: Search and Replace in XSLT



> using Michaels' technique I get the usual entity problem in XML
> i.e. the output becomes:
>
> <img src="x.bmp">
> &lt;tag/&lt;
>
> which is no good to me as I need the proper tag.

Look into <xsl:element name="tag"/>

--
  Thorbjørn Ravn Andersen   "...and...Tubular Bells!"


 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.