473,386 Members | 1,702 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,386 software developers and data experts.

help with xml and css - sorting

Newbie Moment!!

I hope you guys can help. I admit it I know NOTHING about xml and css.
But I need to get a large amount of data out of xml and onto an
intranet site which uses restricted html.I may be able to use css (if
our new outsourced IT dept lets me) but I am having difficulty
figuring out how to get the style sheets to do what i need.

My page is as follows:

<HTML>
<head>
<TITLEInformation</TITLE>
<link rel="stylesheet" type="text/css" href="excel.css">

</head>
<BODY>
<BusinessUnitNR name="Nomination business unit">blah blah blah</
BusinessUnitNR>
<NominationType name="Nomination type">Service</NominationType>
<TeamName name="Team name">John's team</TeamName>
<Description name="Reason">Athe reasonp</Description>
<FullName name="Nominee name">john doe smith</FullName>
<Department name="Nominee department">where i work</Department>
<TeamMembers name="Team members">not required</TeamMembers>
</p>
<P>&nbsp;</P>
<br>
<P class="small"Last Modified: 20th February 2007<BR>
</P>
<script src="/footer.js"></script>
</BODY>
</HTML>

I need to change the order of the xml so we get <NominationType
name="Nomination type"first followed by <FullName name="Nominee
name"and then everything else.

I also have a <Linktag which displays and I want it to be invisible.
I have Go-live and Dreamweaver but I am finding it a little hard to
understand what I need to do. I guess I will be spending the Easter
break figuring out how to write xml, css and use go-live or perhaps
get the xml feature of Indesign up and running.

Thanks

JM

Apr 2 '07 #1
1 3096
On Apr 2, 4:20 pm, jearns...@qantas.com.au wrote:
I admit it I know NOTHING about xml and css.
Generally, you don't do XML+CSS unless you understand the
limitations and are bloody damned sure you're not shooting
yourself in the foot--which you normally are.
But I need to get a large amount of data out of xml and
onto an intranet site which uses restricted html.
I'm not sure I understand what you mean by 'restricted
HTML'. Generally, if you need to publish your XML data on
the web, you do one of the following things:

- use XSLT to transform XML to HTML server-side on the
fly;
- use XSLT to transform XML to HTML server-side ahead of
time;
- use XSLT to transform XML to HTML client-side.

Naturally, there are other options (such as using a SAX/DOM
parser in your language of choice, or, indeed, styling XML
with CSS), but those are better left to experts who
understand the implications.
I may be able to use css but I am having difficulty
figuring out how to get the style sheets to do what i
need.

<HTML>
<head>
<TITLEInformation</TITLE>
<link rel="stylesheet" type="text/css" href="excel.css">

</head>
<BODY>
<BusinessUnitNR name="Nomination business unit">blah blah blah</
BusinessUnitNR>
<NominationType name="Nomination type">Service</NominationType>
<TeamName name="Team name">John's team</TeamName>
<Description name="Reason">Athe reasonp</Description>
<FullName name="Nominee name">john doe smith</FullName>
<Department name="Nominee department">where i work</Department>
<TeamMembers name="Team members">not required</TeamMembers>
</p>
<P>&nbsp;</P>
<br>
<P class="small"Last Modified: 20th February 2007<BR>
</P>
<script src="/footer.js"></script>
</BODY>
</HTML>
Uh... first things first. This is not HTML, and I've no
idea what you're trying to do.
I need to change the order of the xml so we get
<NominationType name="Nomination type"first followed
by <FullName name="Nominee name"and then everything
else.
Ok. Here's the probable source of confusion--someone
mentioned stylesheets in XML context to you and you thought
of CSS. If that is the case, you've probably been mistaken.
The word 'stylesheets' used in XML context usually--but not
always--refers to either XSLT, XSL-FO or the combination of
those two.

As a rule of the thumb, CSS doesn't do content tweaking.
That's what XSLT is for.
I also have a <Linktag which displays and I want it to
be invisible. I have Go-live and Dreamweaver but I am
finding it a little hard to understand what I need to do.
I guess I will be spending the Easter break figuring out
how to write xml, css and use go-live or perhaps get the
xml feature of Indesign up and running.
Here's another possible explanation of the confusion--you
might be using some CMS which handles the transformations
transparently for you, or perhaps some sort of proprietary
editor/browser plug-in capable of displaying that
not-quite-HTML you've posted. In that case, a couple bits
of advice:

1. Post the detailed description of the software
environment you're using.

2. Consider posting your question to mailing-list/support
forum of the software suite you're working with. You
might find someone familiar with your software here, but
comp.text.xml mostly deals with more general questions
about XML and related technologies.

--
Pavel Lepin

Apr 2 '07 #2

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

Similar topics

4
by: dont bother | last post by:
This is really driving me crazy. I have a dictionary feature_vectors{}. I try to sort its keys using #apply sorting on feature_vectors sorted_feature_vector=feature_vectors.keys()...
2
by: D. Roshani | last post by:
Hello ! I wonder if any one can help me to create a cosomize sorting order (as Macro or added small program in c++ or c# which does this work) in a Access Database contaning one table only words...
3
by: Neil Hindry | last post by:
I wonder if you can help me. I have setup an address-book database in Access XP. I have the first name & surname as separate fields. As I wanted to sort my database by surname and then by first...
1
by: aredo3604gif | last post by:
On Sun, 10 Apr 2005 19:46:32 GMT, aredo3604gif@yahoo.com wrote: >The user can dynamically enter and change the rule connection between >objects. The rule is a "<" and so given two objects: >a <...
3
by: Don | last post by:
I have a "Report" that is created from a "Form". It prints a list of items, you may consider it a shopping list. In any event I use to run this in alphabetical order but have since decided to run...
2
by: rookiejavadude | last post by:
I'm have most of my java script done but can not figure out how to add a few buttons. I need to add a delete and add buttong to my existing java program. Not sure were to add it on how. Can anyone...
1
by: Ahmed Yasser | last post by:
Hi all, i have a problem with the datagridview sorting, the problem is a bit complicated so i hope i can describe in the following steps: 1. i have a datagridview with two columns...
1
KevinADC
by: KevinADC | last post by:
Introduction In part one we discussed the default sort function. In part two we will discuss more advanced techniques you can use to sort data. Some of the techniques might introduce unfamiliar...
6
by: gopalsd | last post by:
Hi Friends, Can anyone pls help me to resolve my school test in PERL................ as follows..... #!/usr/bin/perl @data=N; $sum=0; print"enter the required No. of numbers to be inputed...
5
by: jrod11 | last post by:
hi, I found a jquery html table sorting code i have implemented. I am trying to figure out how to edit how many colums there are, but every time i remove code that I think controls how many colums...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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,...

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.