I have a prebuilt system so I can't change the back end. When I call <xsl:value-of select="udt:Application" disable-output-escaping="yes" />
I get html like <a href="someplace/somefile.pdf">somefile.pdf</a>
What I want to be able to do is make the link just say application, no matter what the file name is. This is the html I would like <a href="someplace/somefile.pdf">Application</a> I really have no idea about how to do this because I'm somewhat a noob with xsl. Examples are welcome, but if someone can just give me the names of things I would need to use I can probably google them and get it. Thanks in advance!
Msg#: 4345167 posted 5:59 pm on Aug 3, 2011 (gmt 0)
Sorry about that. XSLT is hard to talk about in English sometimes.
I mean, if you have an XML node with a structure like:
then you can use an XSLT "template" to turn it into:
the node "udt:Application" contains HTML, but it happens that HTML is valid XML and can be further transformed by - instead of outputting the <xsl:value-of> - sending it to a template that changes it into something else.
Some rules defined in a <xsl:template> will accept input sent to it by <xsl:apply-templates>.