473,320 Members | 1,870 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.

relax-ng empty named pattern

Hi All,

Is there a way to define an empty named pattern? Here's the use-case.

I'm trying to use relax-ng to specify an extendable schema.
Basically, people should be able to tack on whatever they like to a
core set of elements/attributes provided their extensions are in a
different namespace.

It would be nice if I could split it up into

core.rnc
ext-1.rnc
ext-2.rnc

so that a final schema could be made from just doing

include "core.rnc"
include "ext-2.rnc"

which would allow elements/attributes from ext-2 but not ext-1.

I thought I could do this by adding the named pattern "extension" to
each element defined in core.rnc. ext-1 etc could then redefine
extension accordingly.

If there's a better a way to accomplish similar goals, I'd be
interested in hearing them too.

Cheers,
Andy
Feb 27 '08 #1
2 1734
Andy Chambers wrote:
Hi All,

Is there a way to define an empty named pattern? Here's the use-case.

I'm trying to use relax-ng to specify an extendable schema.
Basically, people should be able to tack on whatever they like to a
core set of elements/attributes provided their extensions are in a
different namespace.

It would be nice if I could split it up into

core.rnc
ext-1.rnc
ext-2.rnc

so that a final schema could be made from just doing

include "core.rnc"
include "ext-2.rnc"

which would allow elements/attributes from ext-2 but not ext-1.

I thought I could do this by adding the named pattern "extension" to
each element defined in core.rnc. ext-1 etc could then redefine
extension accordingly.

If there's a better a way to accomplish similar goals, I'd be
interested in hearing them too.

Cheers,
Andy
Have you read http://books.xmlschemata.org/relaxng/relax-CHP-12.html?

// Magnus
Feb 27 '08 #2
On 27 Feb, 14:44, Magnus Henriksson
<magnus.henriks...@nospam.ericsson.comwrote:
>
Have you readhttp://books.xmlschemata.org/relaxng/relax-CHP-12.html?
I hadn't seen that. Thanks very much.

--
Andy
Feb 27 '08 #3

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

Similar topics

22
by: Elbert Lev | last post by:
# here is the problem I ran into: class foo: def __init__(self, host): self.f() self.r = True def f(self): if self.r: #<do something>
0
by: abi | last post by:
http://goast.50webs.com/ http://bigchurch.com/go/g912753-pmem http://indianfriendfinder.com/go/g912753-pmem
0
by: theokok2000 | last post by:
EEEE!guys make a brake see something really interesting and then heads again in: http://kavallaris.santorini.googlepages.com/ http://rooms.santorini.googlepages.com/ ...
0
by: Lagas Team | last post by:
Hi Friends! We just started a new fantasy roll playing game : World of Lagas! If you want to join to a great community, and playing with a great new game in a whole new fantasy world, let's come...
0
by: faiz | last post by:
Please feel free To Visit: http://duncraft-bird-feeders.blogspot.com/2008/09/primer-to-attracting-birds-to-your.html Thank You.
3
by: katieh | last post by:
My website is made in flash. I have a dynamic image gallery within. How flash knows what to load into my gallery is it refers to my .xml document. Within flash, it displays the picture, and then in...
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: 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...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
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: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
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.