Subject: Applying Templates From: "Smith, David" <SmithDav@xxxxxxx> Date: Fri, 3 Nov 2000 14:44:03 -0400 (EST) |
I am having a problem figuring out how to path to specific nodes from a generic xml file to produce a variety of stylesheets for it. I have the following as my xml data/model: <!-- edited with XML Spy v3.0 NT (http://www.xmlspy.com) by David Smith (Dun & Bradstreet) --> <?xml-stylesheet type="text/xsl" href="convertCTEST.xsl"?> <CONTENTAREA> <CONTENTITEM> <HEADING>The value of the D&B D-U-N-S Number</HEADING> <SUBHEADING>Para Heading Here</SUBHEADING> <PARAGRAPHHEADING><![CDATA[ <a href="/products/1,3773,,00.html">Find out more on how our global products can help you make better business decisions.</a>]]></PARAGRAPHHEADING> <PARAGRAPH>In today's global economy, Dun & Bradstreet's Data Universal Numbering System, the D&B D-U-N-S Number, has become the standard for keeping track of more than 58 million businesses and their relationships worldwide.</PARAGRAPH> <PARAGRAPH>D&B D-U-N-S Numbers are unique nine-digit identification sequences that serve as the foundation of D&B's database. They provide secure identifiers of single business entities while linking corporate family structures together. </PARAGRAPH> <PARAGRAPH>Used by the world's most influential standards-setting organizations, the D&B D-U-N-S Number is recognized, recommended, or required by more than 50 global, industry and trade associations, including the United Nations, the U.S. Federal Government, the Australian Government and the European Commission. Additionally the D&B D-U-N-S Number is mapped to numbering systems in more than 25 countries worldwide. </PARAGRAPH> <PARAGRAPH>D&B is the global market leader in the provision of commercial credit, marketing and purchasing information. With the D&B D-U-N-S Number, we can help you gain access to and maintain the necessary value-added information so that you can better manage your business enterprise. </PARAGRAPH> <PARAGRAPHHEADING>The value of the D&B D-U-N-S Number</PARAGRAPHHEADING> <PARAGRAPH>In today's global economy, Dun & Bradstreet's Data Universal Numbering System, the D&B D-U-N-S Number, has become the standard for keeping track of more than 58 million businesses and their relationships worldwide.</PARAGRAPH> <PARAGRAPH>D&B D-U-N-S Numbers are unique nine-digit identification sequences that serve as the foundation of D&B's database. They provide secure identifiers of single business entities while linking corporate family structures together. </PARAGRAPH> <PARAGRAPH>Used by the world's most influential standards-setting organizations, the D&B D-U-N-S Number is recognized, recommended, or required by more than 50 global, industry and trade associations, including the United Nations, the U.S. Federal Government, the Australian Government and the European Commission. Additionally the D&B D-U-N-S Number is mapped to numbering systems in more than 25 countries worldwide. </PARAGRAPH> <PARAGRAPH><![CDATA[ D&B is the global market leader in the provision of commercial credit, marketing and purchasing information. With the D&B D-U-N-S Number,<a href="/products/1,3773,,00.html">Find out more on how our global products can help you make better business decisions.</a> we can help you gain access to and maintain the necessary value-added information so that you can better manage your business enterprise.]]></PARAGRAPH> </CONTENTITEM> <IMAGES> <IMAGEM2> <IMGPATH>/images/aboutdb/railway_m2.jpg</IMGPATH> <LINKTEXT/> </IMAGEM2> <IMAGEM1> <IMGPATH>/images/system_wide/shapes_m1.jpg</IMGPATH> <LINKTEXT><![CDATA[ <a href="/products/1,3773,,00.html">Find out more on how our global products can help you make better business decisions.</a>]]></LINKTEXT> </IMAGEM1> <IMAGEM1> <IMGPATH>/images/system_wide/shapes_m1.jpg</IMGPATH> <LINKTEXT> <a href="/products/1,3773,,00.html">Find out more on how our global products can help you make better business decisions.</a> </LINKTEXT> </IMAGEM1> </IMAGES> </CONTENTAREA> I want to be able (for this xsl file) to produce output that will first put down the <HEADING>,a paragraph break, then start with the first image (aligned left) next, put down the first <SUBHEADING> and <PARAGRAPHHEADING> if they exist followed by as many <PARGRAPH>'s that exist before the next occurence of the next <SUBHEADING> or <PARAGRAPHHEADING>. At that point, I need to put down the next image (aligned left again) and then go thru the xml again in the previous manner until I have used all of the images. Anyone that can give me a kick start on this?? David Smith XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: Whitespace within tags, Clapham, Paul | Thread | Re: Applying Templates, Jeni Tennison |
Whitespace within tags, jennifer | Date | RE: [newbie]use of xsl:if {RE: XSL , Xu, Xiaocun |
Month |