[Date Prev]
| [Thread Prev]
| [Thread Next]
| [Date Next]
--
[Date Index]
| [Thread Index]
Where will xpointer() apply in case of xml-stylesheet PI presence?
- From: Hermann Stamm-Wilbrandt <STAMMW@de.ibm.com>
- To: xml-dev@lists.xml.org
- Date: Tue, 25 Jan 2011 13:37:57 +0100
[1] defines several xpointer schemes:
xpointer, element, xpath1, xpath2, ...
In [2] Simon proposed a css selector scheme.
Browser support for these schemes seems not to exist currently.
[3] defines the fragment identifier of a URI.
Now if the URI references a XML file with a xml-stylesheet PI [4]
generating HTML as here:
http://stamm-wilbrandt.de/en/xsl-list/lines.xml#line=250
and opening this in a web browser it will display line 250
(with id "line=250") in the browser window.
So for generated HTML the fragment identifier references into
the data generated by the xml-stylesheet PI.
This file's (genxml.xml [5])
<?xml-stylesheet href="genxml.xsl" type="text/xsl"?>
<data>
<row>
<col>a</col>
<col>b</col>
</row>
<row>
<col>c</col>
<col>d</col>
</row>
</data>
xml-stylesheet PI references genxml.xsl [6] which generates XML document:
<generated>
<line>1</line>
<line>2</line>
<line>3</line>
<line>4</line>
</generated>
So my question now is what will be referenced by
"http://stamm-wilbrandt.de/en/xsl-list/genxml.xml#xpointer(/*/1)"
if opened in a web browser supporting xpointer() scheme?
Is it the first <row> of genxml.xml?
Or the first <line> of the generated XML?
[1] http://www.w3.org/2005/04/xpointer-schemes/
[2] http://lists.xml.org/archives/xml-dev/201101/msg00110.html
[3] http://tools.ietf.org/html/rfc3986#section-3.5
[4] http://stamm-wilbrandt.de/en/xsl-list/lines.xml#line=250
[5] http://stamm-wilbrandt.de/en/xsl-list/genxml.xml
[6] http://stamm-wilbrandt.de/en/xsl-list/genxml.xsl
Mit besten Gruessen / Best wishes,
Hermann Stamm-Wilbrandt
Developer, XML Compiler, L3
Fixpack team lead
WebSphere DataPower SOA Appliances
----------------------------------------------------------------------
IBM Deutschland Research & Development GmbH
Vorsitzender des Aufsichtsrats: Martin Jetter
Geschaeftsfuehrung: Dirk Wittkopp
Sitz der Gesellschaft: Boeblingen
Registergericht: Amtsgericht Stuttgart, HRB 243294
[Date Prev]
| [Thread Prev]
| [Thread Next]
| [Date Next]
--
[Date Index]
| [Thread Index]