Home

XML
View:Recent Entries.
View:Archive.
View:Friends.
View:User Info.
View:Website (PerfectXML).
You're looking at the latest 20 entries.
Missed some entries? Then simply jump back 20 entries

Current Music:Sonic Youth - Cinderella's Big Score (live)
Subject:XMLspy 2008
Time:11:03 am
Is anyone here using Altova XMLspy 2008? I've just set it up and have been surprised to find that an XSLT that performs fine in XMLspy 2006 fails in this new version, claiming that the resultant HTML is not well-formed. I wondered if there's some new setting I need to untick or something.

Edited to add:

Here's the code of a very simple case, under the cut:

an example )

So I get this error message in XMLspy 2008, but I don't get it in XMLspy 2006. And it seems to me that it's an incorrect error, in that the meta tag is closed OK, so it should be OK to close the head like this. This page validates fine on the W3C validator, apart from the thing noted below.

(Annoyingly, it's converted my <body> ... </body> to <body />, which is not correct under my declared doctype HTML 4.01. But both versions do that, and it wouldn't be an issue in a real case I guess ;-)
comments: 9 comments or Leave a comment Add to Memories Tell a Friend

Subject:My First RSS feed.. well, if it worked.
Time:02:18 am
I made an RSS feed for my website's blog, but when I subscribed using Google Reader, it said there's been no posts. Which leads me to believe that I've obviously done something wrong.

Any help will earn you cookies :)

ETA: I fixed it :) The <channel> tag had to go around the items too. Thanks to the feed validator! xD
comments: Leave a comment Add to Memories Tell a Friend

Current Location:DY4, England
Subject:Is this right?
Time:04:54 pm
Current Mood:bouncy
You may remember how badly I fail at XLM from last time. I've come to ask if my since acquired knowledge is correct.

So, what I figured XLM is is basically a standard, that doesn't actually do anything at all. It's just a standard, much like HTML, that other people use as well so they can interpret it all and do what they want with the information. That's correct, right?

My question is, where do I find these standards? Take an RSS feed, how do I know what the procedure is from displaying my titles, body and anything else that's the norm for RSS feeds?

Here's hoping I make sense!
comments: 1 comment or Leave a comment Add to Memories Tell a Friend

Subject:xml script language design question
Time:12:33 am

Hi all,

First, some some background information.

I have written a Java application that runs simple XML-based scripts. The script syntax is defined in a schema, so it's possible to a) generate Java binding classes for the application and b) use an editor with validation and code completion.

The scripts are becoming longer and more complex; they could be greatly simplified if there were support for procedures. It's probably possible to generate complex scripts using XSLT, but I have a very superficial knowledge of it and this approach seems too cumbersome, soo I'll probably go with procedures. They would be defined and called in the same script file, I imagine.

I would like to define as much of the syntax as possible in the schema and do as little as possible additional validation on the application interpreter level, and keep the syntax simple if possible.

The problem is to choose the right syntax and scope for the procedure arguments.

Now, the question:

comments: Leave a comment Add to Memories Tell a Friend

Time:11:47 pm
Hi All,
May be smbd meet hte code ,that creates class from xml file in Java ?
Sincerely yours :-)
comments: 3 comments or Leave a comment Add to Memories Tell a Friend

Subject:xslt advice needed
Time:11:52 pm
I need to convert some xml files to a slightly different schema. A couple of elements need to be renamed and one element needs to move down the hieerarchy and some attributes need to change. Most of the stuff remains the same, though.

I could do it all with sed, but I thought that maybe XSLT would really be the right approach here. Unfortunately, I don't know much about it; I kind of skimmed over the tutorial on the W3C website
and looked at a few other sites I found on Google, but all of the examples seem to be dealing with XML->HTML conversion where all the output is specified explicitly, whereas I need only minor changes, as I wrote above.

Is XSLT really suitable for this? If so, can you please recommend a good resource?

Thanks in advance!
comments: 1 comment or Leave a comment Add to Memories Tell a Friend

Time:08:57 am
Hi,

I'd like to figure out if it's possible to define a unique key in the XSD file that would refer to the same attribute of multiple elements; I do mean the key definition, not key reference.

Any ideas?

Thank in advance.
comments: 2 comments or Leave a comment Add to Memories Tell a Friend

Time:12:21 am
I'm brand new to XML, as of an hour or so ago. ^^;;

Can anyone tell me why this doesn't work? I've practically just copied and pasted the HTML from W3Schools.

Thanks.
comments: 7 comments or Leave a comment Add to Memories Tell a Friend

Subject:http://xmlia.com
Time:12:44 pm
Dear friends!
We are glad to you to inform on opening new, absolutely free-of-charge site about online XML-validator and web-based editor.

For what to pay huge money for different win-based editors or to put the unchecked cracked copies?
Use our site, and you should not install anything on computer.
Our site does not contain advertising, is quickly loaded,consumes not enough traffic and quickly processes your data.
At your service XML visualisation not only in the form of TREE, but also in the form of GRID, that is actually avaliable only in very expensive windows XML editors.

all what you need to do-its just register for free

See you in http://xmlia.com
comments: Leave a comment Add to Memories Tell a Friend

Current Location:Полацк
Subject:XPAth attributes
Time:04:56 pm
Hello. I m trying to select nodes with attributes diffgr:id="PatientNote1".
Here my xml^



20000047
74
20
27
2007-01-29T08:38:40.859375+02:00
New comment - modified
Pakhomov, Yuri
Dental




20000047
74
20
27
2007-01-29T08:38:35.015625+02:00
New comment
Pakhomov, Yuri
Dental




XPAth query:
"//*[@diffgr:id='PatientNote1']"
But it returns 0 nodes. Seems it doesnt like ":" symbol. How to solve this?
comments: 3 comments or Leave a comment Add to Memories Tell a Friend

Current Music:Penicillin
Subject:My Blogger Layout has an ERROR! HELP!!
Time:02:09 am
Current Mood:frustrated
Okay, so I made myself a layout, and I'm currently getting this error from blogger.com.

Your template could not be parsed as it is not well-formed. Please make sure all XML elements are closed properly.
XML error message: White spaces are required between publicId and systemId.



Here's my coding file. Please...SOMEONE HELP ME!! ;__;'



- Rachel
comments: 2 comments or Leave a comment Add to Memories Tell a Friend

Subject:XML questions
Time:11:48 am
Hey all,

Warning: I'm pretty much XML challenged, so a lot of this might sound completely naive.

I'm working on an anthology of recipes. What I would ideally like to do is write up my recipes using the RecipeML DTD and then write a bunch of transformations to change my xml files in HTML, LaTeX, and text files.

I'm assuming that I can use XSLT to do this, but I'm not sure exactly how. It seems like everything I read suggests that XSLT can take an XML doc and output another doc, but how can I use multiple XSLT files to change one doc into many different ones? Is there a command line tool I can run (OS X / Linux here) to execute this transform? I don't need it to happen dynamically through a web browser, obviously, in the case of text and LaTeX and I want the results right away.

Am I trying to use the wrong tool here?
Help? *grins*
comments: 2 comments or Leave a comment Add to Memories Tell a Friend

Subject:xslt question
Time:11:21 am
Hi! I wrote an XSLT to convert from XML to CSV. Only problem is that the headers in my CSV require a CR LF inside an xsl:text, and when the transform gets executed the CR LF gets deleted. Is there a command inside the xsl:text that would preserve the CR LF? Would something like the xsl:preserve-space work for this? Thanks
J
comments: Leave a comment Add to Memories Tell a Friend

Subject:XML Schema syntax
Time:01:42 pm
I'm currently taking an online class and my oh-so-helpful professor and classmates aren't answering my questions to the class message board. In an attempt to get something from this class other than the hour requirement to get my degree, I was wondering if anyone could explain my mistakes to me in a way that makes sense.

Maybe I am totally confused on this subject, but to create a schema that involves children within children IE:
<book>
<authors>
<author>
<given_name></given_name>
<middle_name></middle_name>
<surname></surname>
</author>
</authors>
<bk_title></bk_title>
</book>
doesn't one need to put a complexType within a complexType, like so?

<xs:complexType name="book">
<xs:all>
<xs:complexType name="authors">
<xs:sequence>
<xs:element name="author" type="authorType" minOccurs="1" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
<xs:element name="bk_title" type="xs:string" minOccurs="1" maxOccurs="1"/>
and so on to finish the schema

This is what i presumed to be the case, but using an XML editor <oXygen/> tells me its wrong and I don't understand why. Can someone please explain this to me.

Also, how does one create choices in a schema. We have discussed choice groups, but it doesnt make sense for what I am trying to do, which is say that your choices for a certain element are A or B like is possible in DTDs. Is this something that schemas can't do?
comments: 1 comment or Leave a comment Add to Memories Tell a Friend

Subject:xml schema
Time:07:04 pm
Excuse me, this is my first post in this community..

Ok in my xml file i have

<answer type="multiselect">
  <value>This</value>
  <value>That</value>
  ..& so on...
</answer>
<answer type="text" mode="multiline|singleline>
  <value label="some label" />

Pay attention to this - if answer type is "text" then i need attribute "mode" with enumeration values and only one child element named "value" and this "value" element must have attribute "label".

</answer>


How i can describe complexType for this xml instance?

Best, Ed.
comments: 1 comment or Leave a comment Add to Memories Tell a Friend

Subject:sorting xml elements
Time:05:47 pm
ok in my xml file i have:
<navigation>
<navbit>
<description>...</description>
<url>...</url>
<title>...</title>
</navbit>
</navigation>

and i'm parsing this with php, is their anyway to sort the elements so that it's processed url => title => description?
comments: 2 comments or Leave a comment Add to Memories Tell a Friend

Subject:xhtml 1.1 / DTD / div
Time:12:54 am
I need to add an element to the list of the children of <div> element. I would like to add it right in xhtml file after public DTD link. Could you help me find which module of xhtml-driver contains the definition of <div>, so that I could copy and redefine it in xhtml-file body? I was trying to find it, but I failed, cos all there consist of entities, so that's it's hard to undrestand where is the needed piece of code.
comments: 2 comments or Leave a comment Add to Memories Tell a Friend

Subject:MS Access Import problem
Time:10:31 pm
Hi folks,

I've hit a problem importing an XML file into Access (not my choice unfortunately!).

I have a large XML file which amongst other info contains the
following:


address line 1
address line 2
address line 3


The number of address lines is fixed.

When I try to import this Access will only produce a single 'line'
field.

Is there an XSLT solution that will allow me to number each of the
elements so I get

address line 1
address line 2
address line 3

as that would import okay.

Thanks in advance!

Alb.
comments: 2 comments or Leave a comment Add to Memories Tell a Friend

Subject:Scalar functions on sets in XSLT
Time:09:45 am
I'm looking at some XSLT code written by a vendor of ours, and it calls translate() on a nodeset that could very well have multiple nodes. Will this just return the result for one node (random? the first?), or will it return a nodeset of translated values?

Thanks
comments: 2 comments or Leave a comment Add to Memories Tell a Friend

Subject:define sorting criteria in xslt
Time:02:32 pm
Hey people,

does anyone here know of a nice way to define one's own sorting criteria using xslt's function sort? Specifically, I need to tell it that, when comparing two strings, I want whitespace to come *after* any number. E.g.:

Normal ascending sort:
1. sink1
2. sink in
3. sink2

I want:
1. sink1
2. sink2
3. sink in

I'm thinking of something similar to perl's subroutine sort which you can call with your own comparison function.

Any help would be greatly appreciated.
comments: Leave a comment Add to Memories Tell a Friend

XML
View:Recent Entries.
View:Archive.
View:Friends.
View:User Info.
View:Website (PerfectXML).
You're looking at the latest 20 entries.
Missed some entries? Then simply jump back 20 entries