A
adMjb
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">
<xslutput 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>
====================================
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">
<xslutput 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>
====================================