IWETHEY v. 0.3.0 | TODO
1,095 registered users | 1 active user | 0 LpH | Statistics
Login | Create New User
IWETHEY Banner

Welcome to IWETHEY!

New XSL question
I'm trying to create a link from a data element, but since XSL has to be well-formed XML, I can't figure out how to get the < and > bits in the stream correctly.

Any ideas?

Basically, if I have an element called <OBJECT_TYPE>, I want to create a link that looks like <a href="someurl?p_type=the_object_type">the_object_type</a>

Regards,

-scott anderson
New Answering my own question: (or maybe not)
add disable-output-escaping="yes" to the xsl:text tag.

At least, that's SUPPOSED to do what I want, but it isn't doing anything at all. :-(
Regards,

-scott anderson
New &lt; and &gt; ... ?
New That's what I'm doing.
Whether I disable the escaping or not, it comes out escaped.
Regards,

-scott anderson
New I meant, in your input - but I guess...
Scott:
Whether I disable the escaping or not, it comes out escaped.
...that then it would just come out "&amp;lt;", and so on.

Sorry, haven't the fucking faintest, then.
   Christian R. Conrad
The Man Who Knows Fucking Everything
New OK, *really* answering my own question:
<a>
  <xsl:attribute name="href">
    <xsl:value-of select="OBJECT_TYPE"/>
  </xsl:attribute>
  <xsl:value-of select="OBJECT_TYPE"/>
</a>

Gah, this is wordy crap. :-P
Regards,

-scott anderson
New OK, guyze: Nobody *ever* call Pascal "verbose" again! :-)
New My take on XSL
is that its even more of a mind game than C++ in that, for the document processing crowd, its just a big puzzle you can use to while away days and days.

My experiments with it have me convinced its not a practical mechamism.

New Same here, after working through some demos
It took me twice as much XSL code as template code to implement less functionality.

Pretty nasty stuff.
Regards,

-scott anderson
     XSL question - (admin) - (8)
         Answering my own question: (or maybe not) - (admin) - (3)
             &lt; and &gt; ... ? -NT - (CRConrad) - (2)
                 That's what I'm doing. - (admin) - (1)
                     I meant, in your input - but I guess... - (CRConrad)
         OK, *really* answering my own question: - (admin) - (1)
             OK, guyze: Nobody *ever* call Pascal "verbose" again! :-) -NT - (CRConrad)
         My take on XSL - (tuberculosis) - (1)
             Same here, after working through some demos - (admin)

Hence these societies employ their own versions of summary judgment and Rule 11 of the aforementioned Federal Rules of Civil Procedure.
119 ms