开发者

XML XInclude - wildcard character

I have a directory hierarchy and would want to include all XML files that fit a particular pattern using XInclude. The structure is as show below.

Book/
├── book.xml
└── Chapter
    └── page01.xml
    └── page02.xml
    └── page03.xml
    └── page04.xml

My questions are:

  1. Is there a way of specifying wild card characters to pick a bunch of files as开发者_Python百科 opposed to picking only specified files? I tried out the code below and it appears it's not valid.

    <book name="bookname" source="/home/phiri/Book/book.xml"
          xmlns:xi="http://www.w3.org/2001/XInclude">
      <chapter>
        <title>Title</title>
        <comments>Comments</comments>
        <storypages>001-100</storypages>
        <xi:include href="chapter/page*.xml"/>
      </chapter>
    </book>
    
  2. Is there any other alternate XML based solution I could use as opposed to XInclude?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜