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

New to the list

Subject: New to the list
From: "bix xslt" <bix_xslt@xxxxxxxxxxx>
Date: Wed, 30 Oct 2002 21:07:50 +0000
xslt name
Hi all. I am hoping that this list is still active, but irregardless, I have run into a snag in my learning of XML. I would like to setup my XML files in such a way that a vast majority of the clicking on a given html page would simply reformat the XML file by calling a separate XSLT file. Said differently, I would like to load the XML file once and run multiple XSLT's on the given XML by using html links.

An example DTD might be:

<!ELEMENT node (#PCDATA|node|root|attrib|name|uri)*>
<!ELEMENT root (#PCDATA|root|attrib|name|uri)*>
<!ELEMENT attrib (#PCDATA|name|value)*>
<!ELEMENT name (#PCDATA|uri)*>
<!ELEMENT value (#PCDATA|uri)*>
<!ELEMENT uri (#PCDATA)>

An example XML file may be:
<node>
 <name>Tree</name>
 <uri>Tree</uri>

 <node>
   <name>TrunkA</name>
   <node>
     <name>BranchAA</name>
     <node>
       <name>TwigAAA</name>
       <node>
         <name>LeafAAAA</name>
       </node>
     </node>
   </node>
 </node>

 <node>
   <name>TrunkB</name>
 </node>

 <node>
   <name>Roots</name>
 </node>
</node>


If I wanted to recreate this XML at any of the child nodes listed, what would I need to do to the XSLT? A better way to show this, is suppose that we chose the node with the name of 'TwigAAA', the XML created by an XSLT would be:


<node>
 <name>TwigAAA</name>
 <uri>Tree/TrunkA/BranchAA/TwigAAA</uri>

 <node>
   <name>LeafAAAA</name>
 </node>

 <root>
   <name>BranchAA</name>
   <root>
     <name>TrunkA</name>
     <root>
       <name>Tree</name>
     </root>
   </root>
 </root>
</node>


My question is that suppose I just want to show the given node with its information, in a particular HTML format, how would I use the original XML and simple output HTML to a browser on-the-fly?


Thanks in advance!
Bix

PS: If this is too cryptic and needs further explanation, please let me know!

_________________________________________________________________
Unlimited Internet access -- and 2 months free!? Try MSN. http://resourcecenter.msn.com/access/plans/2monthsfree.asp



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.