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

Can Trang handle <mixed>?

Hello,

I am trying to convert a RELAX NG schema to DTD using Trang. I am
currently trying to add some inline elements to the schema, such as
<emph> for marking emphasised text. Here is an excerpt from the
schema:

<define name="description">
<element name="description">
<mixed>
<element name="emph">
<text/>
</element>
</mixed>
</element>
</define>

Trang complains:

593: error: sorry, cannot handle this kind of "mixed"

Am I botching the RELAX NG syntax there, or is this a limitation of
Trang?
--
Paul.

mailto:paulh_logicsquad_net (make the obvious substitutions)
Jul 20 '05 #1
2 1734
What you have written in <mixed> is the equivalent of:

<interleave>
<element name="emph">
<text/>
</element>
<text/>
</interleave>

(One instance of <emph> possibly bracketed by text.) This has no direct
translation into a DTD, and is probably not what you mean, either. You
probably intend to allow more than one instance of <emph> in the mixed
sequence, which would be written:

<mixed>
<zeroOrMore>
<element name="emph">
<text/>
</element>
</zeroOrMore>
</mixed>

Trang will translate this to the expected:

<!ELEMENT description (#PCDATA|emph)*>

Bob Foster

"Paul A. Hoadley" <pa***@grover.logicsquad.net> wrote in message
news:slrnbru6na.13f3.pa***@grover.logicsquad.net.. .
Hello,

I am trying to convert a RELAX NG schema to DTD using Trang. I am
currently trying to add some inline elements to the schema, such as
<emph> for marking emphasised text. Here is an excerpt from the
schema:

<define name="description">
<element name="description">
<mixed>
<element name="emph">
<text/>
</element>
</mixed>
</element>
</define>

Trang complains:

593: error: sorry, cannot handle this kind of "mixed"

Am I botching the RELAX NG syntax there, or is this a limitation of
Trang?
--
Paul.

mailto:paulh_logicsquad_net (make the obvious substitutions)

Jul 20 '05 #2
On Sun, 23 Nov 2003 21:23:54 GMT, Bob Foster <bo********@comcast.net> wrote:
This has no direct translation into a DTD, and is probably not what
you mean, either. You probably intend to allow more than one
instance of <emph> in the mixed sequence, which would be written:

<mixed>
<zeroOrMore>
<element name="emph">
<text/>
</element>
</zeroOrMore>
</mixed>


Thanks a lot, Bob. That is, indeed, what I meant. And it does, of
course, work.
--
Paul.

mailto:paulh_logicsquad_net (make the obvious substitutions)
Jul 20 '05 #3

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

Similar topics

18
by: Timothy Casey | last post by:
Thanks in advance... =~= Timothy Casey South Australia worloq@iprimus.com.au Formerly: casey@smart.net.au
19
by: CMAR | last post by:
I have the following markup. The problem is that the browser, e.g., IE6, inserts several lines of blank space between the <div> and the following table. Is there a way to minimize that vertical...
1
by: Swami Tota Ram Shankar | last post by:
"Bob Weigel" <dontuwish@nothing.net> wrote in message > > While George Bush, is the epitome of evil, racism, and uncompassionate > > conservatism, Kerry is either deluded, very deluded, or...
5
by: Matthew Louden | last post by:
I wrote ASP.NET application that access SQL Server database. When I run the application, it yields "Login failed for user '<COMPUTER_NAME>\ASPNET'" error message. I then did the following, but...
8
by: Brett Robichaud | last post by:
I understand how code-behind can handle events for a page, but can I call a code-behind method from within a <script> tag in my ASP.Net page, or can I only call methods defined in other <script>...
13
by: onetitfemme | last post by:
I think browsers do it pretty much by default. How can you avoid that? It just doesn't look right/pretty for short definitions and also how can you not indent the whole <dd> so that in stead of...
1
by: mark4asp | last post by:
<form runat="server"automatically adds <divtag to code contained within. Is there a way to stop that? Mixing block-level elements with inline-level elements messes up the HTML becasuse that is...
4
by: =?Utf-8?B?U2VyZ2Vp?= | last post by:
Dear staff Can I get your assistance with \3GB (LARGEADDRESSAWARE) switch in mixed mode process built by VS 2008, please? I have a mixed mode application: C# GUI calling native C++ DLL through...
42
by: barcaroller | last post by:
In the boost::program_options tutorial, the author included the following code: cout << "Input files are: " << vm.as< vector<string() << "\n"; Basically, he is trying to print a vector...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.