[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Fwd: BOUNCE xsl-list@lists.mulberrytech.com: Non-me

Subject: Fwd: BOUNCE xsl-list@l...: Non-member submission from [Patricia Quintin <pquintin@i...>]
From: Wendell Piez <wapiez@xxxxxxxxxxxxxxxx>
Date: Wed, 09 May 2001 22:31:59 +0100
ie5.5 content description
This non-subscriber message is actually *not* from Jeni--

Date: Tue, 8 May 2001 12:02:53 -0400 (EDT)
From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx
To: xsl-list-approval@xxxxxxxxxxxxxxxxxxxxxx
Subject: BOUNCE xsl-list@xxxxxxxxxxxxxxxxxxxxxx: Non-member submission from [Patricia Quintin <pquintin@xxxxxxxxxxxxxxxxxx>]
X-Loop-Detect: 1


>From pquintin@xxxxxxxxxxxxxxxxxx Tue May 8 12:02:41 2001
Received: from klokker.infinitemarket.com (90-69-51-66.reonbroadband.com [66.51.69.90])
by biglist.com (8.8.8/8.8.5/BL-2) with ESMTP id MAA19180
for <xsl-list@xxxxxxxxxxxxxxxxxxxxxx>; Tue, 8 May 2001 12:02:39 -0400 (EDT)
Received: from infinitemarket.com (wks17.infinitemarket.com [192.168.16.17])
by klokker.infinitemarket.com (Postfix) with ESMTP id D2E28BBAD
for <xsl-list@xxxxxxxxxxxxxxxxxxxxxx>; Tue, 8 May 2001 12:03:04 -0400 (EDT)
Message-ID: <3AF8188F.F1CC7D79@xxxxxxxxxxxxxxxxxx>
Date: Tue, 08 May 2001 12:02:23 -0400
From: Patricia Quintin <pquintin@xxxxxxxxxxxxxxxxxx>
X-Mailer: Mozilla 4.75 (Macintosh; U; PPC)
X-Accept-Language: en,pdf
MIME-Version: 1.0
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject: Re: creating a toc with links to content
References: <BBC97352D375D411A7F700B0D04995ACB14F63@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
Content-Type: multipart/signed; protocol="application/x-pkcs7-signature"; micalg=sha1; boundary="------------msA2D9AC478486B309CB3BC83F"


This is a cryptographically signed message in MIME format.

--------------msA2D9AC478486B309CB3BC83F
Content-Type: text/plain; charset=us-ascii; x-mac-type="54455854"; x-mac-creator="4D4F5353"
Content-Transfer-Encoding: 7bit


Hi Meltem,
I finished the stylesheet using your advice, and when I browse the xml file
with IE5 on my Mac <sob, it's what I use at work>, it's fantastic! You can
click the name of any tag at the top of the document to see its definition. I
added "to top" links also.

Here's the code for the list of links at the top of the page:
<a name="top"></a>
<xsl:for-each order-by="+ name" select="taglib/tag"
xmlns:xsl="http://www.w3.org/TR/WD-xsl">
 <br/><a><xsl:attribute name="href">#<xsl:value-of
select="name"/></xsl:attribute>
 <xsl:value-of select="name"/></a>
</xsl:for-each>

And the corresponding code for the name links:
 <xsl:for-each select="taglib/tag" order-by="+ name"
xmlns:xsl="http://www.w3.org/TR/WD-xsl">
  <a><xsl:attribute name="name"><xsl:value-of select="name"/></xsl:attribute>
  <h3><xsl:value-of select="name"/></h3></a>
    ** tag description stuff here **
    <br/><a href="#top">to top</a>
 </xsl:for-each>


I excitedly notified my coworkers about this great resource for our tag library
& *nobody* responded. I thought hm, well I guess they're all busy...then I
tried browsing the document using IE5 on one of the office PCs (what everybody
else uses), and when you click on a link, you get a "page cannot be displayed -
cannot find server or DNS error!" Even for the "top" links, which are basically
hard-coded into the page. Interestingly, when you roll your mouse over a link,
the status bar displays what looks like a perfectly correct link. The same
thing happens on my PC at home, running win98 & IE5.5.


So I'm wondering if the PCs are missing some component for IE5? Also, is there
a way to view the html source that the xsl generates? It might make it easier
to troubleshoot the link problem.

The actual extension on the xml file is .tld - would that make a difference?

Thanks,
pq

Meltem Kogelbauer wrote:

> I understands now. You are anchoring within the page. Then that's fine.
> Then you first lines on top look like
> <a>
> <xsl:attribute name="href">#<xsl:value-of
> select="name"/></xsl:attribute>
> <xsl:value-of select="name"/>
> </a>
>
> And in the Match="tag" template the <a> link look like this
>
> <a><xsl:attribute name="name">#<xsl:value-of select="name"/></xsl:attribute>
>
> <h3><xsl:value-of select="name"/></h3></a>
>
> Meltem
>
> -----Original Message-----
> From: Patricia Quintin [mailto:pquintin@xxxxxxxxxxxxxxxxxx]
> Sent: 03 May 2001 5:54 PM
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject: Re: creating a toc with links to content
>
> thanks for responding! this <a name="{name}"></a> is supposed to create a
> name
> link in the page, e.g., if you have a tag called <name> catId</name>, the
> HTML
> will say <a name="catId"></a>.
>
> The list of tag names at the top is supposed to get turned into page links,
> so
> the same catId tag would show up in the alphabetical list at the top like
> this:
> <a href="#catId">catId</a>
>
> Does this make sense?
>
> thanks again
>
> Meltem Kogelbauer wrote:
>
> > I haven't thoroughly looked at your code but when I tried the
> <xsl:attribute
> > name="name"><xsl:value-of select="name" /></xsl:attribute>
> > in the first each-loop (the first appears on top) it works quite well.
> > Comments: When you use apply-templates you do not need to use for-eash
> loop
> > for the same element.
> >
> > and this one
> >
> > <a name="{name}"></a>
> >
> > what is it supposed to do in this form?
> >
> > Meltem
> >
> > -----Original Message-----
> > From: Patricia Quintin [mailto:pquintin@xxxxxxxxxxxxxxxxxx]
> > Sent: 03 May 2001 2:28 PM
> > To: XSL-List@xxxxxxxxxxxxxxxxxxxxxx
> > Subject: creating a toc with links to content
> >
> > Hi,
> > I have an xml document with multiple items that looks like this:
> >
> > <taglib>
> > <tag>
> > <name>first tag</name>
> > <info>info about this tag</info>
> > <attribute>
> > <name>attribute 1</name>
> > <info>info about attribute 1</info>
> > </attribute>
> > <attribute>
> > <name>attribute 2</name>
> > <info>info about attribute 1</info>
> > </attribute>
> > </tag>
> > <tag>
> > <name>second tag</name>
> > <info>info about this tag</info>
> > <attribute>
> > <name>attribute 1</name>
> > <info>info about attribute 1</info>
> > </attribute>
> > <attribute>
> > <name>attribute 2</name>
> > <info>info about attribute 1</info>
> > </attribute>
> > </tag>
> > </taglib>
> >
> > I want the xsl to generate a document that creates an alphabetical list
> > of tag names at the top of the document, with each tag name being a a
> > link to the full description of the the tag further down in the
> > document.
> >
> > So far I've got the xsl creating the alphabetical list and then the
> > descriptions of each tag (also alphabetical), but the link tags aren't
> > working. Anybody got any ideas?
> >
> > here's the xsl:
> >
> > <?xml version="1.0"?>
> >
> > <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
> > version="1.0">
> > <xsl:template match="/">
> >
> > <html>
> > <head>
> > <title>xr tag library</title>
> > <meta http-equiv="Content-Type" content="text/html;
> > charset=iso-8859-1"/>
> > </head>
> > <body bgcolor="#FFFFFF" text="#000000">
> >
> > <h2>tag library</h2>
> > <hr/>
> >
> > <xsl:for-each select="taglib/tag" order-by="+ name"
> > xmlns:xsl="http://www.w3.org/TR/WD-xsl">
> > <br/><a href="#{name}"><xsl:value-of select="name"/></a>
> > </xsl:for-each>
> >
> > <hr/>
> > <h2>tag definitions</h2>
> > <hr/>
> >
> > <xsl:template match="taglib">
> > <xsl:for-each select="tag">
> > <xsl:apply-templates select="tag">
> > <xsl:sort select="name"/>
> > </xsl:apply-templates>
> > </xsl:for-each>
> > </xsl:template>
> >
> > <xsl:template match="tag">
> > <xsl:for-each select="taglib/tag" order-by="+ name"
> > xmlns:xsl="http://www.w3.org/TR/WD-xsl">
> > <a name="{name}"></a>
> > <h3><xsl:value-of select="name"/></h3>
> > <br/><b>info:</b> <xsl:value-of select="info"/>
> > <br/><br/><i>ATTRIBUTES: </i>
> > <xsl:for-each select="attribute">
> > <br/><b><xsl:value-of select="name"/></b>
> > <ul>
> > <li>info: <xsl:value-of select="info"/></li>
> > </ul>
> > </xsl:for-each>
> > <hr/>
> > </xsl:for-each>
> > </xsl:template>
> >
> > </body>
> > </html>
> >
> > </xsl:template>
> > </xsl:stylesheet>
> >
> > I hope I haven't given you too much/too little information. Any
> > suggestions will be greatly appreciated!
> >
> > Thanks,
> > Pat Quintin
> >
> > XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
>
> XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list


--------------msA2D9AC478486B309CB3BC83F
Content-Type: application/x-pkcs7-signature; name="smime.p7s"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="smime.p7s"
Content-Description: S/MIME Cryptographic Signature

MIIH7gYJKoZIhvcNAQcCoIIH3zCCB9sCAQExCzAJBgUrDgMCGgUAMAsGCSqGSIb3DQEHAaCC
BcEwggKQMIIB+aADAgECAgMD9cowDQYJKoZIhvcNAQEEBQAwgZIxCzAJBgNVBAYTAlpBMRUw
EwYDVQQIEwxXZXN0ZXJuIENhcGUxEjAQBgNVBAcTCUNhcGUgVG93bjEPMA0GA1UEChMGVGhh
d3RlMR0wGwYDVQQLExRDZXJ0aWZpY2F0ZSBTZXJ2aWNlczEoMCYGA1UEAxMfUGVyc29uYWwg
RnJlZW1haWwgUlNBIDIwMDAuOC4zMDAeFw0wMTAxMTIyMjE1MzZaFw0wMjAxMTIyMjE1MzZa
ME0xHzAdBgNVBAMTFlRoYXd0ZSBGcmVlbWFpbCBNZW1iZXIxKjAoBgkqhkiG9w0BCQEWG3Bx
dWludGluQGluZmluaXRlbWFya2V0LmNvbTCBnzANBgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEA
sK9EoxY8pF2dQ6mTv/kVys3NeNyZCpmPjWegxBJBlPUVVEvCKRAtIbTsc5XrCZkC+FAyQPiR
lhJW7P4dD8yH/P/8p2dzRTakUsRVYOGu7fvQqPII0gUDoxO8eL4LmMFJGJNBHpHejlAneimW
D9dwI60O6xnYI5+oas9jabydJUMCAwEAAaM4MDYwJgYDVR0RBB8wHYEbcHF1aW50aW5AaW5m
aW5pdGVtYXJrZXQuY29tMAwGA1UdEwEB/wQCMAAwDQYJKoZIhvcNAQEEBQADgYEAJ9ExuTW8
dFE9Hg5ygM/sEM//ggLd/4h3r6C1B+Ad+qVXtV4LJZDrdrDqTyVO3PWCeAIQe1/CEnOh4VSV
u1kgUPpmwlkt+bk0U+yg24RwdSabaEFm94FIRzBUp2RORUtQ+vt3fkf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li4tgvBUFe17BzX7xe21Yibt6KIGu05Wzl9NPy2lhglTWr0
ncXDkS+plrgFPFL83eliA0gxggH1MIIB8QIBATCBmjCBkjELMAkGA1UEBhMCWkExFTATBgNV
BAgTDFdlc3Rlcm4gQ2FwZTESMBAGA1UEBxMJQ2FwZSBUb3duMQ8wDQYDVQQKEwZUaGF3dGUx
HTAbBgNVBAsTFENlcnRpZmljYXRlIFNlcnZpY2VzMSgwJgYDVQQDEx9QZXJzb25hbCBGcmVl
bWFpbCBSU0EgMjAwMC44LjMwAgMD9cowCQYFKw4DAhoFAKCBsTAYBgkqhkiG9w0BCQMxCwYJ
KoZIhvcNAQcBMBwGCSqGSIb3DQEJBTEPFw0wMTA1MDgxNzAyMjNaMCMGCSqGSIb3DQEJBDEW
BBTNPhU2NGAcYUI0n4TO0F+NA2o0KTBSBgkqhkiG9w0BCQ8xRTBDMAoGCCqGSIb3DQMHMA4G
CCqGSIb3DQMCAgIAgDAHBgUrDgMCBzANBggqhkiG9w0DAgIBQDANBggqhkiG9w0DAgIBKDAN
BgkqhkiG9w0BAQEFAASBgBf+EFmcg2WDWwlKkGZC79P13eZCPieMxMqjfRxh0wW25Sg3IP/u
5oFmxnEF7qFkXbASJmve7vCncL11m17O43o8aAkcCdNyBvqoWsPQ4yfM33g8qnmXD8XxrvpH
xCJHeA+dX6szInjtOPdf+U6tI6tLb3hgjtCL/ZuX68mmnrCg
--------------msA2D9AC478486B309CB3BC83F--


XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.