[ 
http://issues.apache.org/jira/browse/XALANJ-2264?page=comments#action_12368543 
] 

Brian Minchau commented on XALANJ-2264:
---------------------------------------

Oliver Paulus set this note to [email protected]:

Hello Brian,

sounds good to me. In your case I can enable the fixup-base-uri [1]
feature
with the following parameter:

-XMLPARSER
setFeature("http://apache.org/xml/features/xinclude/fixup-base-uris";,
false) 

I have a question: Because the reflection code for this feature can be
complicated you
can also use the setFeature(string, boolean) method of e.g.
DocumentBuilderFactory (I
think it is defined in JAXP 1.3).
The user can set the feature with a call like this: -XMLPARSER
featurestring=true and 
you can call the setFeature method with this "feature-string" and true.
The setXIncludeAware feature is new to JAXP 1.3 (I think) - I did not
found it in JAXP 1.2
spec. This feature can be set in xerces with the following feature too:
[2].
Perhaps you can add a new option only for the setXIncludeAware feature
and another for
all xml parser specific "feature strings"?
I think this would be easier to implement comparing to the reflection
code.
What do you think?

[1]
http://xerces.apache.org/xerces2-j/features.html#xinclude.fixup-base-uri
[2] http://xerces.apache.org/xerces2-j/features.html#xinclude


> Supporting xi:include (and other factory features) on xalan Process 
> command-line
> --------------------------------------------------------------------------------
>
>          Key: XALANJ-2264
>          URL: http://issues.apache.org/jira/browse/XALANJ-2264
>      Project: XalanJ2
>         Type: New Feature
>   Components: Xalan-CmdLine
>     Versions: Latest Development Code
>  Environment: all
>     Reporter: Rudolf Weber
>  Attachments: xalan-xi.patch.txt
>
> The xi:include-awareness should be specifiable on the command-line.
> The default is on, since I think in the normal case it is useful.
> In the special case, the default has to be swiched off with -NIA.
>  (Of course, it may be good keep the current behavior on default. I think, 
> that the xi:include is not in wide use, so I want to risk to change the 
> default. )
> In our project we want to include declarations in a programming language
> in the xslt-file, so the option -XSLIA.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


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

Reply via email to