473,387 Members | 1,573 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

XSLT (Docbook)

MGG
Hi,

Can anybody help me to create a xslt for the following xml matter.

<orderedlist numeration="arabic">
<listitem>
<para>An insurance policy paid 12 months in advance is treated as an
asset because</para>
<orderedlist numeration="upperalpha">
<listitem>
<para>it is a cost incurred by the business.</para>
</listitem>
<listitem>
<para>the business has a debt to the insurance company.</para>
</listitem>
<listitem>
<para>the policy has a future economic benefit to the business.</para>
</listitem>
<listitem>
<para>the policy is an item of value owned by the business.</para>
</listitem>
<listitem>
<para>it must be reported in the statement of financial
position.</para>
</listitem>
</orderedlist>
</listitem>
<listitem>
<para>Which of the following is a correct application of the accounting
equation?</para>
<orderedlist numeration="upperalpha">
<listitem>
<para>A = L - OE + R - E</para>
</listitem>
<listitem>
<para>OE = L - A + R - E</para>
</listitem>
<listitem>
<para>A = L + OE + E - R</para>
</listitem>
<listitem>
<para>OE = A - L + R - E</para>
</listitem>
<listitem>
<para>A = OE - L + R - E</para>
</listitem>
</orderedlist>
</listitem>
<listitem>
<para>Accounting records should be able to be checked against business
documents to
satisfy which qualitative characteristic of accounting?</para>
<orderedlist numeration="upperalpha">
<listitem>
<para>comparability</para>
</listitem>
<listitem>
<para>materiality</para>
</listitem>
<listitem>
<para>relevance</para>
</listitem>
<listitem>
<para>reliability</para>
</listitem>
<listitem>
<para>understandability</para>
</listitem>
</orderedlist>
</listitem>
<listitem>
<para>Accounting principles support the qualitative characteristics of
accounting. From
the following list, select the pair that support one another.</para>
<orderedlist numeration="upperalpha">
<listitem>
<para>relevance and historical cost</para>
</listitem>
<listitem>
<para>materiality and entity</para>
</listitem>
<listitem>
<para>reliability and conservatism</para>
</listitem>
<listitem>
<para>reliability and historical cost</para>
</listitem>
<listitem>
<para>materiality and reporting period</para>
</listitem>
</orderedlist>
</listitem>
<listitem>
<para>Historical cost means:</para>
<orderedlist numeration="upperalpha">
<listitem>
<para>the history of a business can be checked with reports from a
number of periods.</para>
</listitem>
<listitem>
<para>the current value of assets can be verified with business
documents.</para>
</listitem>
<listitem>
<para>using the original accounting methods from one period to the
next.</para>
</listitem>
<listitem>
<para>assets are recorded at the price at which they were originally
purchased.</para>
</listitem>
<listitem>
<para>being on the safe side when recording cost prices of
items.</para>
</listitem>
</orderedlist>
</listitem>
<listitem>
<para>A business owes $100 on balance day for advertising completed
during the
period but no adjustment has been made for advertising owing. What
affect does
this have on the firm's accounting equation?</para>
<orderedlist numeration="upperalpha">
<listitem>
<para>assets overstated, no effect on liabilities, owner's equity
overstated</para>
</listitem>
<listitem>
<para>assets understated, no effect on liabilities, owner's equity
understated</para>
</listitem>
<listitem>
<para>no effect on assets, liabilities overstated, owner's equity
understated</para>
</listitem>
<listitem>
<para>no effect on assets, liabilities understated, owner's equity
overstated</para>
</listitem>
<listitem>
<para>assets understated, liabilities understated, no effect on
owner's equity</para>
</listitem>
</orderedlist>
</listitem>
<listitem>
<para>A business owner has a debtor who owes him $200. Last weekend the
two of them
met by accident at a weekend football match. The business owner
reminded the
debtor about the debt and he promptly paid the owner the $200, using
cash from
his wallet. The owner kept the cash for himself and did not bank it
into the business
account. What is the affect of this event on the accounting equation of
this business?</para>
<orderedlist numeration="upperalpha">
<listitem>
<para>increase assets, no effect on liabilities, increase owner's
equity</para>
</listitem>
<listitem>
<para>increase assets, increase liabilities, no effect on owner's
equity</para>
</listitem>
<listitem>
<para>decrease assets, decrease liabilities, no effect on owner's
equity</para>
</listitem>
<listitem>
<para>decrease assets, no effect on liabilities, decrease owner's
equity</para>
</listitem>
<listitem>
<para>no effect on assets, increase liabilities, decrease owner's
equity</para>
</listitem>
</orderedlist>
</listitem>
<listitem>
<para>A business owner made the following statement: 'Everything must
be recorded
for my business, but not everything has to be reported.' Which
qualitative
characteristic or accounting principle might the owner be thinking of
when
making the above statement?</para>
<orderedlist numeration="upperalpha">
<listitem>
<para>understandability</para>
</listitem>
<listitem>
<para>conservatism</para>
</listitem>
<listitem>
<para>reliability</para>
</listitem>
<listitem>
<para>historical cost</para>
</listitem>
<listitem>
<para>materiality</para>
</listitem>
</orderedlist>
</listitem>
<listitem>
<para>A proprietor used the straight-line method of depreciation for
her vehicles in the
first year (Year 1) of business operations. A friend told her that
reducing balance
is the preferred method for vehicles so she changed to this method in
Year 2. This
method was quite confusing for the owner and so she reverted to
straight line in
Year 3. Which qualitative characteristic of accounting may have been
breached
by this business owner?</para>
<orderedlist numeration="upperalpha">
<listitem>
<para>comparability</para>
</listitem>
<listitem>
<para>materiality</para>
</listitem>
<listitem>
<para>relevance</para>
</listitem>
<listitem>
<para>reliability</para>
</listitem>
<listitem>
<para>understandability</para>
</listitem>
</orderedlist>
</listitem>
<listitem>
<para>The premises of a business were originally purchased for $200 000
a number of years
ago. However, the property was recently valued at about $300 000. What
qualitative
characteristic demands that the premises be revalued for reporting
purposes?</para>
<orderedlist numeration="upperalpha">
<listitem>
<para>comparability</para>
</listitem>
<listitem>
<para>materiality</para>
</listitem>
<listitem>
<para>relevance</para>
</listitem>
<listitem>
<para>reliability</para>
</listitem>
<listitem>
<para>understandability</para>
</listitem>
</orderedlist>
</listitem>
</orderedlist>
thanks in advance

Oct 27 '05 #1
4 1429
MGG wrote:
Hi,

Can anybody help me to create a xslt for the following xml matter.

<orderedlist numeration="arabic">
<listitem>
<para>An insurance policy paid 12 months in advance is treated as an
asset because</para>
<orderedlist numeration="upperalpha">
<listitem>
<para>it is a cost incurred by the business.</para>
</listitem>
<listitem>
<para>the business has a debt to the insurance company.</para>
</listitem>
<listitem>
<para>the policy has a future economic benefit to the business.</para>
</listitem>
<listitem>
<para>the policy is an item of value owned by the business.</para>
</listitem>
<listitem>
<para>it must be reported in the statement of financial
position.</para>
</listitem>
</orderedlist>
</listitem>
<listitem>
<para>Which of the following is a correct application of the accounting
equation?</para>
<orderedlist numeration="upperalpha">
<listitem>
<para>A = L - OE + R - E</para>
</listitem>
<listitem>
<para>OE = L - A + R - E</para>
</listitem>
<listitem>
<para>A = L + OE + E - R</para>
</listitem>
<listitem>
<para>OE = A - L + R - E</para>
</listitem>
<listitem>
<para>A = OE - L + R - E</para>
</listitem>
</orderedlist>
</listitem>
<listitem>
<para>Accounting records should be able to be checked against business
documents to
satisfy which qualitative characteristic of accounting?</para>
<orderedlist numeration="upperalpha">
<listitem>
<para>comparability</para>
</listitem>
<listitem>
<para>materiality</para>
</listitem>
<listitem>
<para>relevance</para>
</listitem>
<listitem>
<para>reliability</para>
</listitem>
<listitem>
<para>understandability</para>
</listitem>
</orderedlist>
</listitem>
<listitem>
<para>Accounting principles support the qualitative characteristics of
accounting. From
the following list, select the pair that support one another.</para>
<orderedlist numeration="upperalpha">
<listitem>
<para>relevance and historical cost</para>
</listitem>
<listitem>
<para>materiality and entity</para>
</listitem>
<listitem>
<para>reliability and conservatism</para>
</listitem>
<listitem>
<para>reliability and historical cost</para>
</listitem>
<listitem>
<para>materiality and reporting period</para>
</listitem>
</orderedlist>
</listitem>
<listitem>
<para>Historical cost means:</para>
<orderedlist numeration="upperalpha">
<listitem>
<para>the history of a business can be checked with reports from a
number of periods.</para>
</listitem>
<listitem>
<para>the current value of assets can be verified with business
documents.</para>
</listitem>
<listitem>
<para>using the original accounting methods from one period to the
next.</para>
</listitem>
<listitem>
<para>assets are recorded at the price at which they were originally
purchased.</para>
</listitem>
<listitem>
<para>being on the safe side when recording cost prices of
items.</para>
</listitem>
</orderedlist>
</listitem>
<listitem>
<para>A business owes $100 on balance day for advertising completed
during the
period but no adjustment has been made for advertising owing. What
affect does
this have on the firm's accounting equation?</para>
<orderedlist numeration="upperalpha">
<listitem>
<para>assets overstated, no effect on liabilities, owner's equity
overstated</para>
</listitem>
<listitem>
<para>assets understated, no effect on liabilities, owner's equity
understated</para>
</listitem>
<listitem>
<para>no effect on assets, liabilities overstated, owner's equity
understated</para>
</listitem>
<listitem>
<para>no effect on assets, liabilities understated, owner's equity
overstated</para>
</listitem>
<listitem>
<para>assets understated, liabilities understated, no effect on
owner's equity</para>
</listitem>
</orderedlist>
</listitem>
<listitem>
<para>A business owner has a debtor who owes him $200. Last weekend the
two of them
met by accident at a weekend football match. The business owner
reminded the
debtor about the debt and he promptly paid the owner the $200, using
cash from
his wallet. The owner kept the cash for himself and did not bank it
into the business
account. What is the affect of this event on the accounting equation of
this business?</para>
<orderedlist numeration="upperalpha">
<listitem>
<para>increase assets, no effect on liabilities, increase owner's
equity</para>
</listitem>
<listitem>
<para>increase assets, increase liabilities, no effect on owner's
equity</para>
</listitem>
<listitem>
<para>decrease assets, decrease liabilities, no effect on owner's
equity</para>
</listitem>
<listitem>
<para>decrease assets, no effect on liabilities, decrease owner's
equity</para>
</listitem>
<listitem>
<para>no effect on assets, increase liabilities, decrease owner's
equity</para>
</listitem>
</orderedlist>
</listitem>
<listitem>
<para>A business owner made the following statement: 'Everything must
be recorded
for my business, but not everything has to be reported.' Which
qualitative
characteristic or accounting principle might the owner be thinking of
when
making the above statement?</para>
<orderedlist numeration="upperalpha">
<listitem>
<para>understandability</para>
</listitem>
<listitem>
<para>conservatism</para>
</listitem>
<listitem>
<para>reliability</para>
</listitem>
<listitem>
<para>historical cost</para>
</listitem>
<listitem>
<para>materiality</para>
</listitem>
</orderedlist>
</listitem>
<listitem>
<para>A proprietor used the straight-line method of depreciation for
her vehicles in the
first year (Year 1) of business operations. A friend told her that
reducing balance
is the preferred method for vehicles so she changed to this method in
Year 2. This
method was quite confusing for the owner and so she reverted to
straight line in
Year 3. Which qualitative characteristic of accounting may have been
breached
by this business owner?</para>
<orderedlist numeration="upperalpha">
<listitem>
<para>comparability</para>
</listitem>
<listitem>
<para>materiality</para>
</listitem>
<listitem>
<para>relevance</para>
</listitem>
<listitem>
<para>reliability</para>
</listitem>
<listitem>
<para>understandability</para>
</listitem>
</orderedlist>
</listitem>
<listitem>
<para>The premises of a business were originally purchased for $200 000
a number of years
ago. However, the property was recently valued at about $300 000. What
qualitative
characteristic demands that the premises be revalued for reporting
purposes?</para>
<orderedlist numeration="upperalpha">
<listitem>
<para>comparability</para>
</listitem>
<listitem>
<para>materiality</para>
</listitem>
<listitem>
<para>relevance</para>
</listitem>
<listitem>
<para>reliability</para>
</listitem>
<listitem>
<para>understandability</para>
</listitem>
</orderedlist>
</listitem>
</orderedlist>
thanks in advance


no, learn xslt and docbook yourself,
i'm sure you will succeed
Oct 27 '05 #2
MGG wrote:
Hi,

Can anybody help me to create a xslt for the following xml matter.


You'd have to specify what you wanted the output to be (XML, HTML, some
plaintext format, PDF, etc); and if it needed rendering, what you wanted
the displayed/printed result to look like.

Your text also contains some undesirable features:

'Everything must be recorded for my business, but not everything has to be
reported.' should be <q>Everything must be recorded for my business, but
not everything has to be reported.</q> if you want proper quotation marks
to be output (see the template for "q");

The hyphens in the equations should be minus signs (and math normally
uses italic letters).

Monetary amount like $200 000 using spaces risk being split over line-ends.
Either use the comma or period (according to culture) or use a non-breaking
space (&nbsp;)

Anyway, this one produces HTML:

<?xml version="1.0" encoding="iso-8859-1"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">

<xsl:output method="html"/>

<xsl:template match="/">
<html>
<head>
<title>Some financial stuff</title>
</head>
<body>
<xsl:apply-templates/>
</body>
</html>
</xsl:template>

<xsl:template match="orderedlist">
<ol>
<xsl:attribute name="type">
<xsl:choose>
<xsl:when test="@numeration='upperalpha'">
<xsl:text>A</xsl:text>
</xsl:when>
<xsl:when test="@numeration='arabic'">
<xsl:text>1</xsl:text>
</xsl:when>
</xsl:choose>
</xsl:attribute>
<xsl:apply-templates/>
</ol>
</xsl:template>

<xsl:template match="listitem">
<li>
<xsl:apply-templates/>
</li>
</xsl:template>

<xsl:template match="para">
<p>
<xsl:choose>
<xsl:when test="contains(.,' - ')">
<i>
<xsl:value-of select="translate(.,'-','&#x2212;')"/>
</i>
</xsl:when>
<xsl:otherwise>
<xsl:apply-templates/>
</xsl:otherwise>
</xsl:choose>
</p>
</xsl:template>

<xsl:template match="q">
<xsl:text>&#x2018;</xsl:text>
<xsl:apply-templates/>
<xsl:text>&#x2019;</xsl:text>
</xsl:template>

</xsl:stylesheet>

What was your problem?

///Peter
--
XML FAQ: http://xml.silmaril.ie/

Oct 27 '05 #3
MGG
I've made the xslt with the help of altova stylevision but i'm not able
to continue the number list for example:

1. this is number list
A. this is another list under number list
B. this is another list under number list
C. this is another list under number list
D. this is another list under number list
2. This is another entry of numer list
A. this is another list under number list
B. this is another list under number list
C. this is another list under number list
D. this is another list under number list
and i'm getting the output like this

1. this is number list
A. this is another list under number list
A. this is another list under number list
A. this is another list under number list
A. this is another list under number list
1. This is another entry of numer list
A. this is another list under number list
A. this is another list under number list
A. this is another list under number list
A. this is another list under number list

please help me to create an appropriate xslt for the same.

Oct 31 '05 #4
MGG wrote:
I've made the xslt with the help of altova stylevision but i'm not
able to continue the number list for example:

1. this is number list
A. this is another list under number list
B. this is another list under number list
C. this is another list under number list
D. this is another list under number list
2. This is another entry of numer list
A. this is another list under number list
B. this is another list under number list
C. this is another list under number list
D. this is another list under number list
and i'm getting the output like this

1. this is number list
A. this is another list under number list
A. this is another list under number list
A. this is another list under number list
A. this is another list under number list
1. This is another entry of numer list
A. this is another list under number list
A. this is another list under number list
A. this is another list under number list
A. this is another list under number list
Then you haven't shown us everything in your document.
please help me to create an appropriate xslt for the same.


The stylesheet I posted works. Have you got some intervening
data that we are not aware of? If so, you can write some XSLT
code to count the number of items in the relevant preceding
lists, and set the start-value counter of the <OL> to the
appropriate value.

///Peter

Oct 31 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Vincent Lefevre | last post by:
I would like to know if the base URI considered to resolve an unparsed entity defined by a relative URI should be the URI before or after its rewriting due to a possible catalog. Let's take an...
9
by: Jeff Rubard | last post by:
I am curious to know whether anyone has experience using XSLT for web XML (non-XHTML) styling, either with CSS or standalone. I myself have engaged in rather unsuccessful experiments with the...
5
by: Mike Judkins | last post by:
I'm looking for examples of websites (preferably large and well known companies, not personal sites or developer-to-developer sites) that use XML and XSLT as a technology platform from which to...
0
by: Vincent Lefevre | last post by:
Under Linux, I currently use xsltproc (libxslt), but it is awfully slow and takes a lot of memory (e.g. more than 100 MB) when using many XML files with a large DTD (e.g. DocBook): With my DTD...
2
by: Yarco | last post by:
I'm learning for docbook under win32. I download: openjade-1_3_1-2-bin docbook-xml-4.4 docbook-dsssl-1.79 ldp.dsl And then copy all openjade bin\ to win32 system\, and then create a directory...
7
by: mike p. | last post by:
I have a docbook xml file, and am using standard docbook 1.61.3 xsl stylesheets to do xhtml transform. Transform works fine when using MSXML. When I try to do the following using asp.net 1.1: ...
1
by: Michael Doubez | last post by:
Hello, I want to mix in the same document Parts that have automatically numbered sections and parts which section are not numbered. Is there any out of the box way to locally suppress the...
3
by: z1 | last post by:
hi- i am fooling around with soap and weather templates. for some reason either this if or select is failing. i am very new to xml and found this code at another site. i can show you the xml...
2
by: Boris | last post by:
I'm making my first steps with XSLT and run into a problem where I didn't find an explanation yet for. Have a look at this very simple XML document (DocBook) ... <?xml version="1.0"...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.