[ http://nagoya.apache.org/jira/browse/XALANJ-1804?page=history ]
Henry Zongaro updated XALANJ-1804:
----------------------------------
Assign To: (was: Xalan Developers Mailing List)
type: Improvement (was: Bug)
Description:
Please consult the attached files to demo the problem:
1. book.xml refers to a schema in book.xsd.
2. The first <b:chapter> element in book.xml doesn't specify the "difficulty"
attribute. According to the schema in book.xsd, it should get the default
value of "easy".
3. Run the ApplyXPath sample "java ApplyXPath book.xml //b:chapter" to list
the chapters. The first <b:chapter> element do NOT have the "difficulty"
attribute.
4. Run "java ApplyXPath book.xml //b:[EMAIL PROTECTED]"easy"]" does NOT
include the first <b:chapter>.
However, this problem does not occur if book.xml uses a DTD (book.dtd). It
works perfectly with a DTD.
Maybe it is not looking at the schema at all?
was:
Please consult the attached files to demo the problem:
1. book.xml refers to a schema in book.xsd.
2. The first <b:chapter> element in book.xml doesn't specify the "difficulty"
attribute. According to the schema in book.xsd, it should get the default
value of "easy".
3. Run the ApplyXPath sample "java ApplyXPath book.xml //b:chapter" to list
the chapters. The first <b:chapter> element do NOT have the "difficulty"
attribute.
4. Run "java ApplyXPath book.xml //b:[EMAIL PROTECTED]"easy"]" does NOT
include the first <b:chapter>.
However, this problem does not occur if book.xml uses a DTD (book.dtd). It
works perfectly with a DTD.
Maybe it is not looking at the schema at all?
Environment:
Operating System: All
Platform: All
was:
Operating System: All
Platform: All
Priority: Minor
Bugzilla Id: (was: 27238)
> Add parser (and other) configuration options to sample programs
> ---------------------------------------------------------------
>
> Key: XALANJ-1804
> URL: http://nagoya.apache.org/jira/browse/XALANJ-1804
> Project: XalanJ2
> Type: Improvement
> Components: XPath
> Versions: 2.5Dx
> Environment: Operating System: All
> Platform: All
> Reporter: Kent Tong
> Priority: Minor
> Attachments: book.dtd, book.xml, book.xml, book.xsd
>
> Please consult the attached files to demo the problem:
> 1. book.xml refers to a schema in book.xsd.
> 2. The first <b:chapter> element in book.xml doesn't specify the "difficulty"
> attribute. According to the schema in book.xsd, it should get the default
> value of "easy".
> 3. Run the ApplyXPath sample "java ApplyXPath book.xml //b:chapter" to list
> the chapters. The first <b:chapter> element do NOT have the "difficulty"
> attribute.
> 4. Run "java ApplyXPath book.xml //b:[EMAIL PROTECTED]"easy"]" does NOT
> include the first <b:chapter>.
> However, this problem does not occur if book.xml uses a DTD (book.dtd). It
> works perfectly with a DTD.
> Maybe it is not looking at the schema at all?
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://nagoya.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]