[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
Tempore 07:43:39, die 09/09/2005 AD, hinc in xsl-list@xxxxxxxxxxxxxxxxxxxxxx scripsit Lynn Alford <lynn.alford@xxxxxxxxxx>:
This is going to be problematic.
consider this snippet of your input:
Note that the bookmarks are screwed up to. It seems like the application with which you built it, has done a bad job interpreting your input.
Re: [xsl] Assistance with recursion
Subject: Re: [xsl] Assistance with recursion From: "Joris Gillis" <roac@xxxxxxxxxx> Date: Fri, 09 Sep 2005 11:48:13 +0200 |
Tempore 07:43:39, die 09/09/2005 AD, hinc in xsl-list@xxxxxxxxxxxxxxxxxxxxxx scripsit Lynn Alford <lynn.alford@xxxxxxxxxx>:
Issues that I need help with:
Constructing a url that may consist of url part - which needs to be first if present but may not be present <locator_url file_name="/courses/handbooks/2005/150_admission.html" host_name="www.jcu.edu.au" protocol="http"/>
and a bookmark part which needs to be prepended with a # but that should only happen when there is a bookmark part to follow <locator_bookmark bookmark_name="title_31161"/>
<xsl:template match="fl:tx.hyperlink" name="tx.hyperlink"> <ulink id="{@id}"> <xsl:attribute name="url"> <xsl:apply-templates select="fl:locator_url/@protocol"/> <xsl:apply-templates select="fl:locator_url/@host_name"/> <xsl:apply-templates select="fl:locator_url/@file_name"/> <xsl:apply-templates select="fl:locator_bookmark/@bookmark_name"/> </xsl:attribute> ??????? </ulink> </xsl:template>
<xsl:template match="@protocol"><xsl:value-of select="."/>://</xsl:template> <xsl:template match="@bookmark_name">#<xsl:value-of select="."/></xsl:template>
also have the proper hyperlink text within the link rather than the link url.
This is going to be problematic.
The xml structure makes this very difficult: what should happen if a hyperlink starts in one 'para' and ends in another? I don't sse any good answer to this dilemma.
consider this snippet of your input:
<tx.r style="FD133">The University structure defined in the HR system does not reflect the structure manually maintained on various Faculty/School/Discipline and Division/Office/Unit home pages. This means that the highly visible page for <tx.hyperlink id="FD135" end="FD136"> <locator_url file_name="/contacts/" host_name="www.jcu.edu.au" protocol="http"/> </tx.hyperlink> </tx.r> <tx.r style="FD134">JCU Co <tx.bookmark id="FD137" app_generated="true" end="FD138" name="_Hlt104622746"/>n <tx.bookmark_end id="FD138" begin="FD137"/>tacts <tx.hyperlink_end id="FD136" begin="FD135"/> </tx.r> ehat should happen
Note that the bookmarks are screwed up to. It seems like the application with which you built it, has done a bad job interpreting your input.
-- Joris Gillis (http://users.telenet.be/root-jg/me.html) Deserta faciunt et innovationem appelant
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] Assistance with recursion, Lynn Alford | Thread | [xsl] Grouping by shift problem, Kent Seegmiller |
Re: [xsl] Break the For-each loop, Dieter Böll | Date | FW: Re: [xsl] Break the For-each lo, Dieter Böll |
Month |
Keywords