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

getting a label from a schema

Subject: getting a label from a schema
From: George Farkas <george@xxxxxxxx>
Date: Thu, 19 Apr 2001 18:43:25 -0400
george farkas
Hi,

I am very much an uneducated newbie that I find it difficult even to phrase my question,
but I cannot find the answer anywhere, so I am asking.



My XML file includes: <group type="Fieldx"> <item>100.00</item> <item>200.00</item> </group>



Each item has a label associated with it by according to its name in an .msd schema
as in the following:


  <element name='Income1' type='Fieldx'>
    <annotation>
      <appinfo>
        <xbrl:rollup to='income' weight='0' order='0'/>
        <xbrl:label xml:lang='en'>Employment income</xbrl:label>
        <xbrl:label xml:lang='fr'>Revenes d'emploi</xbrl:label>
      </appinfo>
    </annotation>
  </element>

That is, the labels are in the schema and the data is in the XML doc.

Two different questions:
1. How do I get my XSLT stylesheet to make sure that all labels from the schema are presented with the item values in an HTML doc, which presents the XML data (even those whose value is zero)?


2. How do I get my XSLT stylesheet to present the label and item values only when the values are not equal to zero?

And relevant to both:
3. How do I indicate the language desired in my XML document?


George Farkas george@xxxxxxxx



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.