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:
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>
Is there any other alternate XML based solution I could use as opposed to XInclude?
精彩评论