Post #12,999
10/11/01 5:08:44 PM
|
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
|
Post #13,004
10/11/01 5:19:41 PM
|
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
|
Post #13,009
10/11/01 5:25:38 PM
|
< and > ... ?
|
Post #13,011
10/11/01 5:28:14 PM
|
That's what I'm doing.
Whether I disable the escaping or not, it comes out escaped.
Regards,
-scott anderson
|
Post #13,023
10/11/01 5:51:38 PM
|
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 " &lt;", and so on. Sorry, haven't the fucking faintest, then.
Christian R. Conrad The Man Who Knows Fucking Everything
|
Post #13,024
10/11/01 5:51:51 PM
|
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
|
Post #13,027
10/11/01 5:53:28 PM
|
OK, guyze: Nobody *ever* call Pascal "verbose" again! :-)
|
Post #13,667
10/16/01 8:04:57 PM
8/21/07 6:13:35 AM
|
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.
|
Post #13,729
10/17/01 9:23:40 AM
|
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
|