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

Rich text element...

3
Hello,

I am trying to create an XML element that will allow me to add some text styling to it.

I don't need full XHTML capabilities, just a few things would be more than enough.

What I am looking is for an element that would be able to hold the following text:

Expand|Select|Wrap|Line Numbers
  1. This is a set of text with <b>bold strings on it</b>
  2. Some <i>italics</i>, maybe even a <a href="xxx">link</a>
  3. And page breaks
  4. <br /><br />Tha'ts it.
How do I create such an element? I don't know if I should use some kind of complexType element with a lot of nesting, or use an xs:any element with a namespace....

Thanks
Apr 3 '07 #1
5 3046
dorinbogdan
839 Expert 512MB
Welcome to TheScripts TSDN...

I'm not sure about font styles, but for links look at this XLink Example.
Apr 3 '07 #2
dorinbogdan
839 Expert 512MB
You have here a good article about how to add style to XML.
Apr 3 '07 #3
IGC
3
Welcome to TheScripts TSDN...

I'm not sure about font styles, but for links look at this XLink Example.
But this will only allow me one xlink reference per chunk element. And the element would be applied to the whole thing.

I want to create an element, that would be able to hold some text with tags on them.

I used <B> <BR> <I> , but they could be name whatever, they don't have to map actual XHTML tags. I will parse them myself on an xslt.

They could be <bold></bold><break></break>. That's not a problem.

Thanks
Apr 3 '07 #4
IGC
3
I solved it.

It was easier than I though.

The article you pointed to early wouldn't work either. The XML documents I will create are not going to be displayed on HTML exclusively, so I need to be able to parse the style information myself, so I can translate to the different outputs I want to create, HTML, PDF, DOC ....


What I did was create complexTypes with mixed contents and allow 0:unbounded repetitions of the style elements.

Thanks
Apr 3 '07 #5
dorinbogdan
839 Expert 512MB
Glad to hear that you solved it.
And thanks for posting the solution, it may help others with same problem.

God bless you,
Dorin.
Apr 3 '07 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: Christoph | last post by:
Does anyone have any recommendations on a good (or, at least decent) and ideally free rich text field control written in javascript? We've been using the one that came with Micro- soft's...
14
by: Seth Russell | last post by:
I'm running Kevin Roth's rte box and i want to deactivate the ability to past inside the box. People sometimes paste outrageous things in there that might break my site. How can I deactivate the...
1
by: PC User | last post by:
I found this Rich Text Editor and I've been trying to recreate it in my own application. I've had trouble with the COMCTL.ImageListCtrl and the COMCTL.Toolbar to recreate the toolbar. And I've...
3
by: Chris | last post by:
Does anyone know of any rich text boxes for classic asp. It needs to support tables and multiple images. I can find lots .net ones but not classic asp. Regards, Chris.
2
by: jceddy | last post by:
Well, there is something here I'm working on, and I have a problem that has several possible solutions...none of which I can figure out how to implement. Basically, I am creating a rich text...
1
by: tomi.trescak | last post by:
Hi I have a problem with storing rich text in MySQL. I store rich text in MySQL (in column with type "text") which i get from Rich Textbox control. When i do reverse processing by trying to...
1
by: sarwarmohiuddin | last post by:
Hello MAtes, I am having this problem of adding a script element in a rich text editor box. i am doing this. The problem is that it won't add the script tag alltogather, or give an error "Unknown...
4
by: Neil | last post by:
Just found out that the Microsoft Rich Textbox does not support full text justification, since it's based on Version 1.0 of the RichEdit Window Class, and full text justification is only available...
16
by: Neil | last post by:
I posted a few days ago that it seems to me that the Access 2007 rich text feature does not support: a) full text justification; b) programmatic manipulation. I was hoping that someone might...
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
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
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,...
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.