[brailleblaster] Re: Semantic action files and namespace prefixes

  • From: "John J. Boyer" <john.boyer@xxxxxxxxxxxxxxxxx>
  • To: brailleblaster@xxxxxxxxxxxxx
  • Date: Tue, 28 Jan 2014 11:55:42 -0600

The local or simple name is used.

John

On Tue, Jan 28, 2014 at 03:41:27PM +0000, Keith Creasy wrote:
> Well, yes, the parser is supposed to take care of that. I think in this case 
> though we are just stepping through the DOM and accessing the node name. The 
> question is are we accessing the simple name or the qualified name. I can 
> probably look at the LibLouisUTDML code and figure it out.
> 
> 
> From: brailleblaster-bounce@xxxxxxxxxxxxx 
> [mailto:brailleblaster-bounce@xxxxxxxxxxxxx] On Behalf Of Michael Whapples
> Sent: Tuesday, January 28, 2014 10:38 AM
> To: brailleblaster@xxxxxxxxxxxxx
> Subject: [brailleblaster] Re: Semantic action files and namespace prefixes
> 
> Related to this: If the latter case is so and prefixes are used, how does one 
> define what the namespace is for the prefix?
> 
> It is not the prefix which really identifies it but rather the namespace the 
> prefix maps to.
> 
> What I mean by that is that if the namespace had been assigned to a different 
> prefix (eg. xmlns:myns="...") then the below would still be valid:
> <span myns:type="pagebreak" id="page_23">23</span>
> 
> Therefore if liblouisutdml semantic action files do support namespaces then 
> it would also need a way of defining the prefixes and which namespace they 
> map to.
> 
> I do not believe semantic action files support namespaces at the moment.
> 
> Michael Whapples
> On 28/01/2014 15:12, Keith Creasy wrote:
> John.
> 
> In the semantic action files are namespace prefixes used or ignored. As in 
> this example:
> 
> XML...
> 
> <span EPUB:type="pagebreak" id="page_23">23</span>
> 
> Semantic action file:
> 
> No span,type,pagebreak
> 
> Or...
> 
> No span,EPUB:type,pagebreak
> 
> Thanks.
> 
> Keith
> 
> 

-- 
John J. Boyer; President, Chief Software Developer
Abilitiessoft, Inc.
http://www.abilitiessoft.com
Madison, Wisconsin USA
Developing software for people with disabilities


Other related posts: