Given a requirement of

<dc:Title>title</dc:Title>
<dtb:uid>uid</dtb:uid>

then any element in the dc namespace, I have

<define name="Meta">
  <element name="meta">
    <interleave>
        <element  name="dtb:uid">
          <text/>
        </element>
        <element name="dc:Title">
          <text/>
        </element>
    </interleave>
      <zeroOrMore>
        <element>
          <anyName ns="http://purl.org/dc/elements/1.1/";>
            <except>
              <name>dc:Title</name>
            </except>
          </anyName>
          <text/>
      </element>
      </zeroOrMore>

  </element>
  </define>


With a test case of

  <meta>
    <dtb:uid >Book uid. c-106d9b2a281-69f6e4cc85854303d842aedf5687b839
 </dtb:uid>
    <dc:Title >Book title</dc:Title>
    <dc:Author>Dave Pawson</dc:Author>
    <dtb:producer>RNIB </dtb:producer>
    <dtb:sourceDate>0</dtb:sourceDate>
  </meta>

jing is saying OK.

Am I right in thinking that anyName ns="" allows any localname()
within the given namespace?
It would seem not.

regards




--
Dave Pawson
XSLT XSL-FO FAQ.
http://www.dpawson.co.uk


------------------------ Yahoo! Groups Sponsor --------------------~--> 
Most low income households are not online. Help bridge the digital divide today!
http://us.click.yahoo.com/cd_AJB/QnQLAA/TtwFAA/2U_rlB/TM
--------------------------------------------------------------------~-> 

 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/rng-users/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 




Reply via email to