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

Re: Seeking XSLT code that provides a "Go to definiti

Subject: Re: Seeking XSLT code that provides a "Go to definition"capability
From: "Dr. Roger L Costello costello@xxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Fri, 10 Jul 2020 21:39:33 -0000
Re:  Seeking XSLT code that provides a "Go to  definiti
> Do you mean, Roger, that youbd like to
> generate HTML with links in the
> output or do you mean something else?

I want to do something like this:

<xsl:template match="/">
    <Results>
        <xsl:for-each select="//*">
            <element>
                <name><xsl:value-of select="name()"/></name>
                <file>GET THE NAME OF THE SCHEMA FILE THAT CONTAINS THE
ELEMENT DECLARATION</file>
                <maxOccurs>GET THIS VALUE FROM THE SCHEMA</maxOccurs>
                <minOccurs>GET THIS VALUE FROM THE SCHEMA</minOccurs>
                <type>
                    <base>GET THIS VALUE FROM THE SCHEMA</base>
                    <xsl:for-each select="facets">
                        GET THE FACETS
                    </xsl:for-each>
                </type>
                <annotation>GET THIS VALUE FROM THE SCHEMA</annotation>
                <fixed>GET THIS VALUE FROM THE SCHEMA</fixed>
                <default>GET THIS VALUE FROM THE SCHEMA</default>
            </element>
        </xsl:for-each>
    </Results>
</xsl:template>

/Roger

-----Original Message-----
From: Norman Tovey-Walsh ndw@xxxxxxxxxx
<xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Sent: Friday, July 10, 2020 4:58 PM
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject: [EXT] Re:  Seeking XSLT code that provides a "Go to
definition"capability

Bridger Dyson-Smith bdysonsmith@xxxxxxxxx
<xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> writes:
> Perhaps Norm Walsh's XSLT Explorer[1] would be helpful?

I got the impression that Roger was looking for a tool that would
connect elements in his source document back to their schema
definitions. Thatbs not really what XSLT Explorer does at all.

>> I want that capability in my XSLT program. That is, I want my XSLT program
>> to navigate through the elements in an XML document and then at each
>> element I'd like to be able to "Go to definition"

Do you mean, Roger, that youbd like to generate HTML with links in the
output or do you mean something else? Ibm not sure I understand.

                                        Be seeing you,
                                          norm

--
Norman Tovey-Walsh <ndw@xxxxxxxxxx>
https://nwalsh.com/

> A physicist is an atom's way of knowing about atoms.--George Wald

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.