Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


help needed with xlink:href

From: "adMjb" <adam.mjbarnes@-----.--->
To: NULL
Date: 6/1/2006 5:10:00 AM

Hi

Any help would be fantastic

I have a simple problem but I cant work it out... DOHH...., this is my
XML:

<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/css" href="BSI%20Test.css"?>
<document xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns:html="http://www.w3.org/HTML/1998/html4" xml:lang="en-US"
style="\-ilx-style-update: none; widows: 0; orphans: 0;
word-break-inside: normal; \-ilx-endnote-numbering-policy: continuous;
\-ilx-endnote-position: sectionbottom; \-ilx-endnote-style-type:
decimal; \-ilx-footnote-numbering-policy: continuous;
\-ilx-footnote-position: documentbottom; \-ilx-footnote-style-type:
decimal;\-ilx-block-border-mode: merge;">

  <part>
    <list>
      <endnote> If this works I'll be amazed <link
xlink:href="http://www.weblink.com">
          <inline class="Hyperlink">ONE</inline>
        </link>
      </endnote>

      <endnote> If this works I'll be amazed <link
xlink:href="http://www.weblink.com">
          <inline class="Hyperlink">TWO</inline>
        </link>
      </endnote>

      <endnote> If this works I'll be amazed <link
xlink:href="http://www.weblink.com">
          <inline class="Hyperlink">THREE</inline>
        </link>
      </endnote>
    </list>
  </part>
</document>
=========================================
And this my XSL:

<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:xlink="http://www.w3.org/1999/xlink"
exclude-result-prefixes="xlink">
  <xsl:output method="xml" version="1.0" encoding="UTF-16"
indent="no"/>
  <xsl:template match="document">
      <root>
      <end>
        <xsl:for-each select="//endnote">
          <endNoteText>
            <endNum>
              <xsl:number level="any" format="1"/>
            </endNum>
          <xsl:value-of select="."/>
          </endNoteText>
        </xsl:for-each>
      </end>
    </root>
  </xsl:template>
</xsl:stylesheet>

=====================================

But my output is wrong, I want the weblink to be part of the text
somthing like this:

<?xml version="1.0" encoding="UTF-16"?>
<root>
  <end>
    <endNoteText><endNum>1</endNum> If this works I'll be amazed <link
href="http://www.weblink.com">ONE</link> </endNoteText>
    <endNoteText><endNum>2</endNum> If this works I'll be amazed <link
href="http://www.weblink.com">TWO</link> </endNoteText>
    <endNoteText><endNum>3</endNum> If this works I'll be amazed <link
href="http://www.weblink.com">THREE</link> </endNoteText>
  </end>
</root>
====================================



transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent