473,320 Members | 2,027 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Is there a way to get xml to IGNORE < and >

I'm trying to build a mailto url like so:

<td class="{$sData}"><![CDATA[<a href="mailto:]]><xsl:value-of
select="email"/><![CDATA[?subject=Support question">]]><xsl:value-of
select="email"/><![CDATA[</a>]]></td>

The html that's rendered looks like I would expect my html source to,
however in the source there are &lt; and &gt; chraracters so my links
don't work. Any way to get it to just spit out what I have onto the
page?

-Eric

Feb 12 '07 #1
3 1955
On Feb 12, 9:38 am, "Eric" <eric.gofo...@gmail.comwrote:
I'm trying to build a mailto url like so:

<td class="{$sData}"><![CDATA[<a
href="mailto:]]><xsl:value-of
select="email"
/><![CDATA[?subject=Support question">]]><xsl:value-of
select="email"/><![CDATA[</a>]]></td>

The html that's rendered looks like I would expect my
html source to, however in the source there are &lt; and
&gt; chraracters so my links don't work. Any way to get
it to just spit out what I have onto the page?
There is a way, but I'm not going to tell you, since it's
an obvious case of XY problem. Instead, here's the Right
Way to solve your problem:

<td class="{$sData}">
<a>
<xsl:attribute name="href">
<xsl:text>mailto:</xsl:text>
<xsl:value-of select="email"/>
<xsl:text>?subject=Support question</xsl:text>
</xsl:attribute>
<xsl:value-of select="email"/>
</a>
</td>

--
Pavel Lepin

Feb 12 '07 #2
p.*****@ctncorp.com schrieb:
<xsl:text>?subject=Support question</xsl:text>
A ' ' is not allowed in URLs, so change ot to Support%20question

--
Johannes Koch
In te domine speravi; non confundar in aeternum.
(Te Deum, 4th cent.)
Feb 12 '07 #3
On Feb 12, 12:59 pm, Johannes Koch <k...@w3development.de>
wrote:
p.le...@ctncorp.com schrieb:
<xsl:text>?subject=Support question</xsl:text>

A ' ' is not allowed in URLs, so change ot to
Support%20question
Indeed. Although using an url-encode template would've been
an even better solution.

--
Pavel Lepin

Feb 12 '07 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Christian Schmidbauer | last post by:
Hello! I prepare my XML document like this way: ------------------------------------------------------- PrintWriter writer; Document domDocument; Element domElement; // Root tag
2
by: Eshrath | last post by:
Hi, What I am trying to do: ======================= I need to form a table in html using the xsl but the table that is formed is quite long and cannot be viewed in our application. So we are...
2
by: Donald Firesmith | last post by:
I am having trouble having Google Adsense code stored in XSL converted properly into HTML. The <> unfortunately become &lt; and &gt; and then no longer work. XSL code is: <script...
0
by: Arne Schirmacher | last post by:
I want to display a MySQL database field that can contain HTML markup. If I use <esql:get-string> then I get all of the database field, but all tags are escaped which is not what I want. If I use...
4
by: higabe | last post by:
Three questions 1) I have a string function that works perfectly but according to W3C.org web site is syntactically flawed because it contains the characters </ in sequence. So how am I...
34
by: Mark Moore | last post by:
It looks like there's a pretty serious CSS bug in IE6 (v6.0.2800.1106). The HTML below is validated STRICT HTML 4.01 and renders as I would expect in Opera, FrontPage, and Netscape. For some...
18
by: deko | last post by:
I need to include code snippets in my html document, something like this: <?xml version="1.0" encoding="utf-8" ?> <configuration> <appSettings> <add key="ConnectionString"...
11
by: Les Paul | last post by:
I'm trying to design an HTML page that can edit itself. In essence, it's just like a Wiki page, but my own very simple version. It's a page full of plain old HTML content, and then at the bottom,...
2
by: gregmcmullinjr | last post by:
I am wondering if there is a way to use a DTD or Schema to instruct an XML parser to ignore tags that are not defined. That is, if my list of acceptable tags is <bodyand <content>, then in the...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.