Am Jul 19, 2007 um 18:23 schrieb Andreas Hartmann:

Andreas Hartmann schrieb:

How about this approach:

In the resource type configuration, instead of listing the samples,
a file containing the sample declarations is referenced:

  <component-instance name="xhtml" ...>
    ...
<samples uri="fallback://lenya/modules/xhtml/samples/ samples.xml"/>
    ...
  </component-instance>

The samples.xml would look like this:

  <samples>
    <sample name="Default Sample" mime-type="application/xhtml+xml"
      uri="fallback://lenya/modules/xhtml/samples/xhtml.xml"/>
    ...
  </samples>

I implemented this, but the contents of the samples.xml file must
look like the standard samples declaration:

<samples>
<sample-name name="Default Sample" mime-type="application/xhtml +xml">
    fallback://lenya/modules/xhtml/samples/xhtml.xml</sample-name>
  ...
</samples>

Please test! :)



My goodness, that was fast! - I'll do some testing tomorrow!

thanks, Andreas

Jürgen


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to