This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: Search and Replace in XSLT
- To: <xsl-list at mulberrytech dot com>
- Subject: RE: Search and Replace in XSLT
- From: "ciaran byrne" <ciaran dot byrne at 3tl dot com>
- Date: Fri, 11 Aug 2000 13:24:29 +0100
- Reply-To: xsl-list at mulberrytech dot com
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@mulberrytech.com
[mailto:owner-xsl-list@mulberrytech.com]On Behalf Of Thorbjørn Ravn
Andersen
Sent: Friday, August 11, 2000 12:03 PM
To: 'xsl-list@mulberrytech.com'
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">
> <tag/<
>
> 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